mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 13:06:13 +01:00
Added methods to check and request window focus
This commit is contained in:
1 parent
42c2fb1f5c
commit
766398d86e
4 files changed
+87
No files matched your search
@@ -295,6 +295,20 @@ sfBool sfRenderWindow_setActive(sfRenderWindow* renderWindow, sfBool active)
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfRenderWindow_requestFocus(sfRenderWindow* renderWindow)
|
||||
{
|
||||
CSFML_CALL(renderWindow, requestFocus());
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfBool sfRenderWindow_hasFocus(const sfRenderWindow* renderWindow)
|
||||
{
|
||||
CSFML_CALL_RETURN(renderWindow, hasFocus(), sfFalse);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfRenderWindow_display(sfRenderWindow* renderWindow)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user