From a3c28c00016fb2a2bd13b36e7269c69b0529c6a4 Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 31 Mar 2022 12:58:50 +0300 Subject: More window related functions. --- API.md | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) (limited to 'API.md') diff --git a/API.md b/API.md index 82f5599..2664d48 100644 --- a/API.md +++ b/API.md @@ -702,6 +702,54 @@ int id. ModelAnimations --- +> state = RL_IsWindowReady() + +Check if window has been initialized successfully + +- Success return bool + +--- + +> state = RL_IsWindowFullscreen() + +Check if window is currently fullscreen + +- Success return bool + +--- + +> state = RL_IsWindowHidden() + +Check if window is currently hidden ( only PLATFORM_DESKTOP ) + +- Success return bool + +--- + +> state = RL_IsWindowMinimized() + +Check if window is currently minimized ( only PLATFORM_DESKTOP ) + +- Success return bool + +--- + +> state = RL_IsWindowMaximized() + +Check if window is currently maximized ( only PLATFORM_DESKTOP ) + +- Success return bool + +--- + +> state = RL_IsWindowFocused() + +Check if window is currently focused ( only PLATFORM_DESKTOP ) + +- Success return bool + +--- + > success = RL_SetWindowMonitor( int monitor ) Set monitor for the current window (fullscreen mode) @@ -729,6 +777,15 @@ Set window dimensions --- +> success = RL_SetWindowMinSize( Vector2 size ) + +Set window minimum dimensions ( for FLAG_WINDOW_RESIZABLE ) + +- Failure return false +- Success return true + +--- + > position = RL_GetMonitorPosition( int monitor ) Get specified monitor position @@ -823,12 +880,72 @@ Get number of connected monitors --- +> monitor = RL_GetCurrentMonitor() + +Get current connected monitor + +- Success return int + +--- + +> size = RL_GetMonitorPhysicalSize( int monitor ) + +Get specified monitor physical size in millimetres + +- Failure return false +- Success return Vector2 + +--- + +> size = RL_GetMonitorRefreshRate( int monitor ) + +Get specified monitor refresh rate + +- Failure return false +- Success return int + +--- + +> scale = RL_GetWindowScaleDPI() + +Get window scale DPI factor + +- Success return Vector2 + +--- + +> name = RL_GetMonitorName( int monitor ) + +Get the human-readable, UTF-8 encoded name of the monitor + +- Failure return false +- Success return string + +--- + > RL_CloseWindow() Close window and unload OpenGL context and free all resources --- +> success = RL_SetClipboardText( string text ) + +Set clipboard text content + +- Failure return false +- Success return true + +--- + +> text = RL_GetClipboardText() + +Get clipboard text content + +- Success return string + +--- + ## Core - Timing --- -- cgit v1.2.3