aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-07-25 15:00:46 +0200
committerdec05eba <dec05eba@protonmail.com>2024-07-25 15:00:46 +0200
commitde91c23dd50748bdb6e13562b601784a83b64cb9 (patch)
tree6347b370d2a2b9954a049ef0ba55e351aafa9d23 /include
parentfd15a6947741c997072df8b1ddf93cefc416c838 (diff)
Update to latest mgl, adds option to hide decorations on window create
Diffstat (limited to 'include')
-rw-r--r--include/mglpp/graphics/Sprite.hpp1
-rw-r--r--include/mglpp/window/Window.hpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/mglpp/graphics/Sprite.hpp b/include/mglpp/graphics/Sprite.hpp
index 21b2a41..67f7cad 100644
--- a/include/mglpp/graphics/Sprite.hpp
+++ b/include/mglpp/graphics/Sprite.hpp
@@ -25,6 +25,7 @@ namespace mgl {
void set_scale(vec2f scale);
void set_scale(float scale);
void set_size(vec2f size);
+ void set_height(float height);
void set_rotation(float degrees);
void set_origin(vec2f origin);
diff --git a/include/mglpp/window/Window.hpp b/include/mglpp/window/Window.hpp
index 7fa1117..08cd435 100644
--- a/include/mglpp/window/Window.hpp
+++ b/include/mglpp/window/Window.hpp
@@ -45,6 +45,7 @@ namespace mgl {
bool hidden = false;
bool override_redirect = false;
bool support_alpha = false; /* support alpha for the window */
+ bool hide_decorations = false; /* this is a hint, it may be ignored by the window manager */
Color background_color = {0, 0, 0, 0};
const char *class_name = nullptr;
mgl_window_type window_type = MGL_WINDOW_TYPE_NORMAL;