aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-16 05:20:43 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-16 05:20:43 +0100
commit8df2299beba0f1465c3167edb67dd593c5c9e8db (patch)
tree6ca4fb34609919ba9c2b92b3a6f0636331d120c7 /include
parentdb02fe3f85165b09954d01d44a497abf8155b326 (diff)
Window: add function to set window position, size and size limits
Diffstat (limited to 'include')
-rw-r--r--include/mgl/window/window.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h
index 20c700a..812a5b2 100644
--- a/include/mgl/window/window.h
+++ b/include/mgl/window/window.h
@@ -70,4 +70,9 @@ void mgl_window_set_cursor_visible(mgl_window *self, bool visible);
/* 0 = no fps limit */
void mgl_window_set_framerate_limit(mgl_window *self, int fps);
+void mgl_window_set_position(mgl_window *self, mgl_vec2i position);
+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 */
+void mgl_window_set_size_limits(mgl_window *self, mgl_vec2i minimum, mgl_vec2i maximum);
+
#endif /* MGL_WINDOW_H */