mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
sokol: expose the toggle_fullscreen and is_fullscreen functions (#11339)
This commit is contained in:
parent
9496fcdfe1
commit
8dcb27a11d
@ -233,3 +233,15 @@ pub fn win32_get_hwnd() voidptr {
|
||||
pub fn android_get_native_activity() voidptr {
|
||||
return voidptr(C.sapp_android_get_native_activity())
|
||||
}
|
||||
|
||||
// Toggle full screen
|
||||
[inline]
|
||||
pub fn toggle_fullscreen() {
|
||||
C.sapp_toggle_fullscreen()
|
||||
}
|
||||
|
||||
// Check if full screen rendering
|
||||
[inline]
|
||||
pub fn is_fullscreen() bool {
|
||||
return C.sapp_is_fullscreen()
|
||||
}
|
||||
|
@ -103,3 +103,9 @@ fn C.sapp_win32_get_hwnd() voidptr
|
||||
|
||||
// Android: get native activity handle
|
||||
fn C.sapp_android_get_native_activity() voidptr
|
||||
|
||||
// Toggle full screen
|
||||
fn C.sapp_toggle_fullscreen()
|
||||
|
||||
// Check if full screen rendering
|
||||
fn C.sapp_is_fullscreen() bool
|
||||
|
Loading…
Reference in New Issue
Block a user