From cd00beb099b7a63d89f767507bcd1065101debb4 Mon Sep 17 00:00:00 2001 From: R cqls Date: Mon, 20 Feb 2023 20:58:04 +0100 Subject: [PATCH] gg: add toggle_fullscreen and is_fullscreen (#17371) --- vlib/gg/gg.c.v | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vlib/gg/gg.c.v b/vlib/gg/gg.c.v index 41c7dcde5f..7bebb7a59f 100644 --- a/vlib/gg/gg.c.v +++ b/vlib/gg/gg.c.v @@ -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 {