From 56cf5684dc3ae06dd77a5f8f0143dc368de76746 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 30 Oct 2024 14:27:40 +0100 Subject: [PATCH] Make Fl_Window::flush() public for consistency with subclasses ... as discussed on fltk.general recently Note: this method was already public in all subclasses of Fl_Window. --- FL/Fl_Window.H | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FL/Fl_Window.H b/FL/Fl_Window.H index 90e3e5dc0..d5a3be8f3 100644 --- a/FL/Fl_Window.H +++ b/FL/Fl_Window.H @@ -98,9 +98,14 @@ protected: /** Stores the last window that was made current. See current() const */ static Fl_Window *current_; void draw() FL_OVERRIDE; + +public: + /** Forces the window to be drawn, this window is also made current and calls draw(). */ virtual void flush(); +protected: + /** Sets an internal flag that tells FLTK and the window manager to honor position requests.