aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mgl/window/window.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h
index 27e4409..f42d592 100644
--- a/include/mgl/window/window.h
+++ b/include/mgl/window/window.h
@@ -47,12 +47,14 @@ struct mgl_window {
typedef struct {
mgl_vec2i position;
mgl_vec2i size;
- mgl_vec2i min_size; /* (0, 0) = no limit */
- mgl_vec2i max_size; /* (0, 0) = no limit */
+ 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;
+ bool hidden; /* false by default */
+ bool override_redirect; /* false by default */
} mgl_window_create_params;
+/* |params| can be NULL */
int mgl_window_create(mgl_window *self, const char *title, const mgl_window_create_params *params);
int mgl_window_init_from_existing_window(mgl_window *self, mgl_window_handle existing_window);
void mgl_window_deinit(mgl_window *self);