mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-06 06:13:10 +00:00
ADDED: SetWindowFocused() #3142
This commit is contained in:
parent
5361d498c3
commit
d1ab031a27
@ -958,6 +958,7 @@ RLAPI void SetWindowMonitor(int monitor); // Set monitor
|
||||
RLAPI void SetWindowMinSize(int width, int height); // Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)
|
||||
RLAPI void SetWindowSize(int width, int height); // Set window dimensions
|
||||
RLAPI void SetWindowOpacity(float opacity); // Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP)
|
||||
RLAPI void SetWindowFocused(void); // Set window focused (only PLATFORM_DESKTOP)
|
||||
RLAPI void *GetWindowHandle(void); // Get native window handle
|
||||
RLAPI int GetScreenWidth(void); // Get current screen width
|
||||
RLAPI int GetScreenHeight(void); // Get current screen height
|
||||
|
||||
@ -1705,6 +1705,14 @@ void SetWindowOpacity(float opacity)
|
||||
#endif
|
||||
}
|
||||
|
||||
// Set window focused
|
||||
void SetWindowFocused(void)
|
||||
{
|
||||
#if defined(PLATFORM_DESKTOP)
|
||||
glfwFocusWindow(CORE.Window.handle);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Get current screen width
|
||||
int GetScreenWidth(void)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user