From de91c23dd50748bdb6e13562b601784a83b64cb9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 25 Jul 2024 15:00:46 +0200 Subject: Update to latest mgl, adds option to hide decorations on window create --- include/mglpp/graphics/Sprite.hpp | 1 + include/mglpp/window/Window.hpp | 1 + 2 files changed, 2 insertions(+) (limited to 'include') 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; -- cgit v1.2.3