mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 11:25:27 +00:00
Re-added WindowHandle property
There are projects that use reflection to access *WindowInfo.WindowHandle directly. This change ensures we don't break them.
This commit is contained in:
parent
4fd5cc30d5
commit
f9fdddea64
|
@ -70,6 +70,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
public IntPtr Handle
|
public IntPtr Handle
|
||||||
{
|
{
|
||||||
get { return this.windowRef; }
|
get { return this.windowRef; }
|
||||||
|
set { this.windowRef = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
internal bool GoFullScreenHack
|
internal bool GoFullScreenHack
|
||||||
|
@ -83,7 +84,6 @@ namespace OpenTK.Platform.MacOS
|
||||||
set { goWindowedHack = value; }
|
set { goWindowedHack = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a value indicating whether this instance refers to a System.Windows.Forms.Control.
|
/// Gets a value indicating whether this instance refers to a System.Windows.Forms.Control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -99,6 +99,11 @@ namespace OpenTK.Platform.MacOS
|
||||||
return String.Format("MacOS.CarbonWindowInfo: Handle {0}", this.Handle);
|
return String.Format("MacOS.CarbonWindowInfo: Handle {0}", this.Handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For compatibility with whoever thought it would be
|
||||||
|
// a good idea to access internal APIs through reflection
|
||||||
|
// (e.g. MonoGame)
|
||||||
|
public IntPtr WindowHandle { get { return Handle; } set { Handle = value; } }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region IDisposable Members
|
#region IDisposable Members
|
||||||
|
|
|
@ -89,6 +89,11 @@ namespace OpenTK.Platform.Windows
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For compatibility with whoever thought it would be
|
||||||
|
// a good idea to access internal APIs through reflection
|
||||||
|
// (e.g. MonoGame)
|
||||||
|
public IntPtr WindowHandle { get { return Handle; } set { Handle = value; } }
|
||||||
|
|
||||||
#region public override string ToString()
|
#region public override string ToString()
|
||||||
|
|
||||||
/// <summary>Returns a System.String that represents the current window.</summary>
|
/// <summary>Returns a System.String that represents the current window.</summary>
|
||||||
|
|
|
@ -91,6 +91,11 @@ namespace OpenTK.Platform.X11
|
||||||
/// <summary>Gets or sets the X11 EventMask.</summary>
|
/// <summary>Gets or sets the X11 EventMask.</summary>
|
||||||
public EventMask EventMask { get { return eventMask; } set { eventMask = value; } }
|
public EventMask EventMask { get { return eventMask; } set { eventMask = value; } }
|
||||||
|
|
||||||
|
// For compatibility with whoever thought it would be
|
||||||
|
// a good idea to access internal APIs through reflection
|
||||||
|
// (e.g. MonoGame)
|
||||||
|
public IntPtr WindowHandle { get { return Handle; } set { Handle = value; } }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region --- IDisposable Members ---
|
#region --- IDisposable Members ---
|
||||||
|
|
Loading…
Reference in a new issue