summaryrefslogtreecommitdiff
path: root/FL/Fl_Window.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-11-04 11:30:45 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-11-05 19:42:55 +0100
commit0ae927a00e9ecd45a45edf004e939ab2e5ce4813 (patch)
treed2d585d0d6088494b23529fc43dde9a7cdf330b3 /FL/Fl_Window.H
parenta31409f7bbe7db51f63c79b16358d64ae6e2d4bb (diff)
Add Fl_Window::maximize() and Fl_Window::un_maximize()
Diffstat (limited to 'FL/Fl_Window.H')
-rw-r--r--FL/Fl_Window.H8
1 files changed, 8 insertions, 0 deletions
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