From 7500786896a629d6924a90e2938333087f8c442c Mon Sep 17 00:00:00 2001 From: Trass3r Date: Fri, 23 Jul 2010 20:37:46 +0000 Subject: [PATCH] sync with sfml: + Window.windowHandle() git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1536 4e206d99-4929-0410-ac5d-dfc041789085 --- DSFML/import/dsfml/window/window.d | 36 ++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/DSFML/import/dsfml/window/window.d b/DSFML/import/dsfml/window/window.d index 2015ca02..d09f7f07 100644 --- a/DSFML/import/dsfml/window/window.d +++ b/DSFML/import/dsfml/window/window.d @@ -349,6 +349,17 @@ public: { sfWindow_SetJoystickThreshold(m_ptr, threshold); } + + /** + * Retrieve the Os-specific handle of a window + * + * Params: + * renderWindow = Renderwindow object + */ + WindowHandle windowHandle() + { + return sfWindow_GetSystemHandle(m_ptr); + } } /** @@ -414,29 +425,30 @@ private: int function(SFMLClass) sfWindow_IsOpened; uint function(SFMLClass) sfWindow_GetWidth; uint function(SFMLClass) sfWindow_GetHeight; - ContextSettings function(SFMLClass Window) sfWindow_GetSettings; + ContextSettings function(SFMLClass Window) sfWindow_GetSettings; int function(SFMLClass, Event*) sfWindow_GetEvent; - void function(SFMLClass, int) sfWindow_UseVerticalSync; - void function(SFMLClass, int) sfWindow_ShowMouseCursor; + void function(SFMLClass, int) sfWindow_UseVerticalSync; + void function(SFMLClass, int) sfWindow_ShowMouseCursor; void function(SFMLClass, uint, uint) sfWindow_SetCursorPosition; - void function(SFMLClass, int, int) sfWindow_SetPosition; + void function(SFMLClass, int, int) sfWindow_SetPosition; void function(SFMLClass, uint, uint) sfWindow_SetSize; - void function(SFMLClass, int) sfWindow_Show; - void function(SFMLClass, int) sfWindow_EnableKeyRepeat; + void function(SFMLClass, int) sfWindow_Show; + void function(SFMLClass, int) sfWindow_EnableKeyRepeat; void function(SFMLClass, size_t, size_t, ubyte*) sfWindow_SetIcon; - int function(SFMLClass, int) sfWindow_SetActive; + int function(SFMLClass, int) sfWindow_SetActive; void function(SFMLClass) sfWindow_Display; - SFMLClass function(SFMLClass) sfWindow_GetInput; - void function(SFMLClass, uint) sfWindow_SetFramerateLimit; + SFMLClass function(SFMLClass) sfWindow_GetInput; + void function(SFMLClass, uint) sfWindow_SetFramerateLimit; float function(SFMLClass) sfWindow_GetFrameTime; - void function(SFMLClass, float) sfWindow_SetJoystickThreshold; + void function(SFMLClass, float) sfWindow_SetJoystickThreshold; // DSFML2 - bool function(SFMLClass, void*) sfWindow_WaitEvent; + bool function(SFMLClass, void*) sfWindow_WaitEvent; + WindowHandle function(SFMLClass) sfWindow_GetSystemHandle; } mixin(loadFromSharedLib2("csfml-window", "sfWindow", "Create", "CreateFromHandle", "Destroy", "Close", "IsOpened", "GetWidth", "GetHeight", "GetSettings", "GetEvent", "UseVerticalSync", "ShowMouseCursor", "SetCursorPosition", "SetPosition", "SetSize", "Show", "EnableKeyRepeat", "SetIcon", "SetActive", "Display", - "GetInput", "SetFramerateLimit", "GetFrameTime", "SetJoystickThreshold", "WaitEvent")); + "GetInput", "SetFramerateLimit", "GetFrameTime", "SetJoystickThreshold", "WaitEvent", "GetSystemHandle")); } \ No newline at end of file