From 0ae927a00e9ecd45a45edf004e939ab2e5ce4813 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 4 Nov 2023 11:30:45 +0100 Subject: Add Fl_Window::maximize() and Fl_Window::un_maximize() --- FL/Fl_Window.H | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'FL/Fl_Window.H') diff --git a/FL/Fl_Window.H b/FL/Fl_Window.H index 18ff8b201..f0d2f5bb0 100644 --- a/FL/Fl_Window.H +++ b/FL/Fl_Window.H @@ -92,6 +92,8 @@ private: Fl_Window(const Fl_Window&); Fl_Window& operator=(const Fl_Window&); + void is_maximized_(bool b); + protected: /** Stores the last window that was made current. See current() const */ @@ -508,6 +510,12 @@ public: \see void Fl_Window::fullscreen() */ void fullscreen_screens(int top, int bottom, int left, int right); + + void maximize(); + void un_maximize(); + /** Returns whether the window is currently maximized */ + unsigned int maximize_active() const { return flags() & MAXIMIZED; } +public: /** Iconifies the window. If you call this when shown() is false it will show() it as an icon. If the window is already -- cgit v1.2.3