aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-03-30 16:10:56 +0200
committerdec05eba <dec05eba@protonmail.com>2022-03-30 16:10:56 +0200
commit956c86fe4728e6e5239202f1402fd65260ece7c8 (patch)
tree70b638cac96eb164c5320be05d14e07a142794d7 /include
parent131a2f0b5c51fc821224bf7637ba58df0a5ae15a (diff)
Proper y offset for text, add option to create hidden window and add function to make it visible (map, unmap)
Diffstat (limited to 'include')
-rw-r--r--include/mgl/window/window.h2
1 files changed, 2 insertions, 0 deletions
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);