From 956c86fe4728e6e5239202f1402fd65260ece7c8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 30 Mar 2022 16:10:56 +0200 Subject: Proper y offset for text, add option to create hidden window and add function to make it visible (map, unmap) --- include/mgl/window/window.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h index a948932..27e4409 100644 --- a/include/mgl/window/window.h +++ b/include/mgl/window/window.h @@ -50,6 +50,7 @@ typedef struct { mgl_vec2i min_size; /* (0, 0) = no limit */ mgl_vec2i max_size; /* (0, 0) = no limit */ mgl_window_handle parent_window; /* 0 = root window */ + bool hidden; } mgl_window_create_params; int mgl_window_create(mgl_window *self, const char *title, const mgl_window_create_params *params); @@ -80,6 +81,7 @@ void mgl_window_get_view(mgl_window *self, mgl_view *view); void mgl_window_set_scissor(mgl_window *self, mgl_scissor *new_scissor); void mgl_window_get_scissor(mgl_window *self, mgl_scissor *scissor); +void mgl_window_set_visible(mgl_window *self, bool visible); bool mgl_window_is_open(const mgl_window *self); bool mgl_window_has_focus(const mgl_window *self); bool mgl_window_is_key_pressed(const mgl_window *self, mgl_key key); -- cgit v1.2.3