diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-03-30 16:14:20 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-03-30 16:15:11 +0200 |
commit | 2c879c34c9aeddae528d2818f7baa6a915d5d77a (patch) | |
tree | a45a5e100abd15d0cf9512914b884d724617107a /include | |
parent | 5b97ed133553f92875872a32728221bcda53be38 (diff) |
Proper y offset for text, add option to create hidden window and add function to make it visible (map, unmap), fix incorrect copy/move text
Diffstat (limited to 'include')
-rw-r--r-- | include/mglpp/window/Window.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mglpp/window/Window.hpp b/include/mglpp/window/Window.hpp index 655f63d..93918f4 100644 --- a/include/mglpp/window/Window.hpp +++ b/include/mglpp/window/Window.hpp @@ -35,6 +35,7 @@ namespace mgl { mgl::vec2i min_size; /* (0, 0) = no limit */ mgl::vec2i max_size; /* (0, 0) = no limit */ WindowHandle parent_window = 0; /* 0 = root window */ + bool hidden = false; }; Window(); @@ -53,6 +54,7 @@ namespace mgl { void draw(const Vertex *vertices, size_t vertex_count, PrimitiveType primitive_type, Shader *shader = nullptr); void display(); + void set_visible(bool visible); bool is_open() const; bool has_focus() const; void close(); |