aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mgl/window/window.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h
index d922238..3a1faac 100644
--- a/include/mgl/window/window.h
+++ b/include/mgl/window/window.h
@@ -153,10 +153,17 @@ bool mgl_window_is_fullscreen(const mgl_window *self);
void mgl_window_set_low_latency(mgl_window *self, bool low_latency);
bool mgl_window_is_low_latency_enabled(const mgl_window *self);
+/* This also flushes the X11 data so the position is changed as soon as possible */
void mgl_window_set_position(mgl_window *self, mgl_vec2i position);
-/* Note that window size in mgl_window doesn't update immediately as the change size request can be ignored by the window manager. A MGL_EVENT_RESIZED event will be received if the resize occurred */
+/*
+ Note that window size in mgl_window doesn't update immediately as the change size request can be ignored by the window manager. A MGL_EVENT_RESIZED event will be received if the resize occurred.
+ This also flushes the X11 data so the size is changed as soon as possible.
+*/
void mgl_window_set_size(mgl_window *self, mgl_vec2i size);
-/* if |minimum| is (0, 0) then there is no minimum limit, if |maximum| is (0, 0) then there is no maximum limit */
+/*
+ If |minimum| is (0, 0) then there is no minimum limit, if |maximum| is (0, 0) then there is no maximum limit.
+ This also flushes the X11 data so the size is changed as soon as possible.
+*/
void mgl_window_set_size_limits(mgl_window *self, mgl_vec2i minimum, mgl_vec2i maximum);
void mgl_window_set_clipboard(mgl_window *self, const char *str, size_t size);