Skip to content

Commit cd00beb

Browse files
authored
gg: add toggle_fullscreen and is_fullscreen (#17371)
1 parent 2694624 commit cd00beb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

vlib/gg/gg.c.v

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,16 @@ pub fn window_size_real_pixels() Size {
676676
return Size{sapp.width(), sapp.height()}
677677
}
678678

679+
// is it fullscreen
680+
pub fn is_fullscreen() bool {
681+
return sapp.is_fullscreen()
682+
}
683+
684+
// toggle fullscreen
685+
pub fn toggle_fullscreen() {
686+
sapp.toggle_fullscreen()
687+
}
688+
679689
/*
680690
pub fn wait_events() {
681691
unsafe {

0 commit comments

Comments
 (0)