1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

gg: add toggle_fullscreen and is_fullscreen (#17371)

This commit is contained in:
R cqls 2023-02-20 20:58:04 +01:00 committed by GitHub
parent 269462425a
commit cd00beb099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -676,6 +676,16 @@ pub fn window_size_real_pixels() Size {
return Size{sapp.width(), sapp.height()}
}
// is it fullscreen
pub fn is_fullscreen() bool {
return sapp.is_fullscreen()
}
// toggle fullscreen
pub fn toggle_fullscreen() {
sapp.toggle_fullscreen()
}
/*
pub fn wait_events() {
unsafe {