From 24b40a2e4736cd009494a405189d366f8ee6d2c9 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 16 Jun 2017 09:29:54 +0000 Subject: Allow calling Fl_Window::decorated_w() with const Fl_Window object and also for decorated_h. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Window.H | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/FL/Fl_Window.H b/FL/Fl_Window.H index 391ac3212..a8dc2c84a 100644 --- a/FL/Fl_Window.H +++ b/FL/Fl_Window.H @@ -519,15 +519,16 @@ public: Same as w() if applied to a subwindow. */ - int decorated_w(); + int decorated_w() const; + /** Returns the window height including any window title bar and any frame added by the window manager. Same as h() if applied to a subwindow. */ - int decorated_h(); + int decorated_h() const; - Fl_Window_Driver *driver() { return pWindowDriver; } + Fl_Window_Driver *driver() const { return pWindowDriver; } // Note: Doxygen docs in Fl_Widget.H to avoid redundancy. virtual Fl_Window* as_window() { return this; } -- cgit v1.2.3