2007-08-05 13:42:31 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace OpenTK.Platform.Windows
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Describes a Windows window.
|
|
|
|
|
/// This class supports OpenTK, and is not intended for use by OpenTK programs.
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal class WindowInfo : IWindowInfo
|
|
|
|
|
{
|
|
|
|
|
private IntPtr handle;
|
|
|
|
|
private WindowInfo parent;
|
|
|
|
|
|
|
|
|
|
#region --- IWindowInfo Members ---
|
|
|
|
|
|
|
|
|
|
public IntPtr Handle
|
|
|
|
|
{
|
|
|
|
|
get { return handle; }
|
|
|
|
|
internal set { handle = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IWindowInfo Parent
|
|
|
|
|
{
|
|
|
|
|
get { return parent; }
|
|
|
|
|
internal set { parent = value as WindowInfo; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
2007-08-05 16:44:31 +00:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2007-08-06 11:22:18 +00:00
|
|
|
|
return String.Format("Windows.WindowInfo: Handle {0}, Parent ({1})",
|
2007-08-05 16:54:14 +00:00
|
|
|
|
this.Handle, this.Parent != null ? this.Parent.ToString() : "null");
|
2007-08-05 16:44:31 +00:00
|
|
|
|
}
|
|
|
|
|
|
2007-08-05 13:42:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|