From 2c879c34c9aeddae528d2818f7baa6a915d5d77a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 30 Mar 2022 16:14:20 +0200 Subject: 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 --- src/window/Window.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/window') diff --git a/src/window/Window.cpp b/src/window/Window.cpp index c41a0c6..dbb77a3 100644 --- a/src/window/Window.cpp +++ b/src/window/Window.cpp @@ -63,6 +63,10 @@ namespace mgl { mgl_window_display(&window); } + void Window::set_visible(bool visible) { + mgl_window_set_visible(&window, visible); + } + bool Window::is_open() const { return mgl_window_is_open(&window); } -- cgit v1.2.3