mirror of
https://github.com/fltk/fltk.git
synced 2026-05-26 10:07:06 +08:00
More detailed doc of Fl_Window::decorated_h() for X11 platform.
This commit is contained in:
+9
-3
@@ -512,6 +512,7 @@ public:
|
|||||||
/** Returns the window width including any frame added by the window manager.
|
/** 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.
|
Same as w() if applied to a subwindow, or if window is not yet mapped.
|
||||||
|
\see decorated_h().
|
||||||
*/
|
*/
|
||||||
int decorated_w() const;
|
int decorated_w() const;
|
||||||
|
|
||||||
@@ -519,9 +520,14 @@ public:
|
|||||||
added by the window manager.
|
added by the window manager.
|
||||||
|
|
||||||
Same as h() if applied to a subwindow, or if window is not yet mapped.
|
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()
|
\note Under X11, FLTK is able to compute the size of window titlebars and borders
|
||||||
to obtain the height of the titlebar <b> during a resize operation</b>.
|
only if these decoration elements are strictly X11-based. When that's not the case,
|
||||||
That computation is to best done when the window is first mapped.
|
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;
|
int decorated_h() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user