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:
parent
269462425a
commit
cd00beb099
@ -676,6 +676,16 @@ pub fn window_size_real_pixels() Size {
|
|||||||
return Size{sapp.width(), sapp.height()}
|
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() {
|
pub fn wait_events() {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
Loading…
Reference in New Issue
Block a user