FS#162 - Add a function to retrieve the system specific handle of a window
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1530 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
028c4d5a96
commit
ef8a2700fe
26 changed files with 104 additions and 21 deletions
|
@ -341,6 +341,16 @@ namespace SFML
|
|||
sfWindow_SetJoystickThreshold(This, threshold);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// <summary>
|
||||
/// OS-specific handle of the window
|
||||
/// </summary>
|
||||
////////////////////////////////////////////////////////////
|
||||
public virtual IntPtr SystemHandle
|
||||
{
|
||||
get {return sfWindow_GetSystemHandle(This);}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// <summary>
|
||||
/// Wait for a new event and dispatch it to the corresponding
|
||||
|
@ -642,6 +652,9 @@ namespace SFML
|
|||
|
||||
[DllImport("csfml-window", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
||||
static extern void sfWindow_SetJoystickThreshold(IntPtr This, float Threshold);
|
||||
|
||||
[DllImport("csfml-window", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
||||
static extern IntPtr sfWindow_GetSystemHandle(IntPtr This);
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue