diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-02-08 08:03:35 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-02-08 08:03:35 +0100 |
| commit | bf16e4e8aaff642e47defcbb0f0aa992b20bb0b7 (patch) | |
| tree | 6dd8aa1baf41143b1cb895567fed7a7e99903e92 /FL | |
| parent | 01db1720103886648b9ca05c3a677646bfcb8bfd (diff) | |
More detailed doc of Fl_Window::decorated_h() for X11 platform.
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Window.H | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/FL/Fl_Window.H b/FL/Fl_Window.H index ddcea3fbe..27465c433 100644 --- a/FL/Fl_Window.H +++ b/FL/Fl_Window.H @@ -512,6 +512,7 @@ public: /** Returns the window width including any frame added by the window manager. Same as w() if applied to a subwindow, or if window is not yet mapped. + \see decorated_h(). */ int decorated_w() const; @@ -519,9 +520,14 @@ public: added by the window manager. Same as h() if applied to a subwindow, or if window is not yet mapped. - \note Under X11, it's not possible to compute decorated_h() - h() - to obtain the height of the titlebar <b> during a resize operation</b>. - That computation is to best done when the window is first mapped. + \note Under X11, FLTK is able to compute the size of window titlebars and borders + only if these decoration elements are strictly X11-based. When that's not the case, + decorated_h() returns the same value as h() and decorated_w() as w(), and FLTK + cannot access window decorations. + + \note Under X11 again, the values returned by decorated_h() and decorated_w() + may not be reliable <b> during a resize operation</b>. The size of decoration elements + of a window is best computed when the window is first mapped. */ int decorated_h() const; |
