More window related functions.

This commit is contained in:
jussi
2022-03-31 12:58:50 +03:00
parent f5b723519f
commit a3c28c0001
5 changed files with 359 additions and 1 deletions

117
API.md
View File

@@ -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
---