diff options
| author | Manolo Gouy <Manolo> | 2017-07-28 15:51:05 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-07-28 15:51:05 +0000 |
| commit | c88466928db4ecdeb4e6c6eb84c873319d02ec7d (patch) | |
| tree | 4a56a225eb62566bbe000b10196790207774e64d /FL | |
| parent | 879c4df5bd5247a72900915a5c2fc7b9bb308b95 (diff) | |
Replace static protected bool Fl_Window_Driver::is_a_rescale by a private static variable and a public getter.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Window_Driver.H | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FL/Fl_Window_Driver.H b/FL/Fl_Window_Driver.H index a667962de..044363236 100644 --- a/FL/Fl_Window_Driver.H +++ b/FL/Fl_Window_Driver.H @@ -44,16 +44,14 @@ class FL_EXPORT Fl_Window_Driver { friend class Fl_Window; friend class Fl_X; - friend class Fl_Group; - friend class Fl_Gl_Window; - friend class Fl_Double_Window; +private: + static bool is_a_rescale_; // true when a top-level window is being rescaled protected: Fl_Window *pWindow; struct shape_data_type; shape_data_type *shape_data_; ///< non-null means the window has a non-rectangular shape void flush_Fl_Window(); // accessor to protected Fl_Window::flush() - static bool is_a_rescale; // true when the window is rescaling public: Fl_Window_Driver(Fl_Window *); virtual ~Fl_Window_Driver(); @@ -62,6 +60,8 @@ public: Fl_Offscreen other_xid; // offscreen bitmap (overlay and double-buffered windows) virtual int screen_num(); virtual void screen_num(int) {} + static bool is_a_rescale() {return is_a_rescale_;}; + // --- frequently used accessors to public window data /** returns the x coordinate of the window. */ |
