diff options
| author | Greg Ercolano <erco@seriss.com> | 2013-04-10 20:51:24 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2013-04-10 20:51:24 +0000 |
| commit | 3fe3f24427853500b1b2c63aa1c0f6a728896e6f (patch) | |
| tree | 3639912385a11e8f7fe1eecc4c599a6f68d92792 /FL | |
| parent | 936f01be5c04ee2bfaa4fae1d5ebf77cb47c8625 (diff) | |
Solve STR#2948: Add new method Fl_Widget::top_window() to return the widget's top-level window.
Docs for existing Fl_Widget::window() revised to clarify the difference between these two methods.
Docs for window() also moved from .H -> .cxx as per CMP (docs should be where code implementation is).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9871 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Widget.H | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H index cbe7e9f0a..5f5c9a2d6 100644 --- a/FL/Fl_Widget.H +++ b/FL/Fl_Widget.H @@ -919,12 +919,8 @@ public: */ void measure_label(int& ww, int& hh) const {label_.measure(ww, hh);} - /** Returns a pointer to the primary Fl_Window widget. - \retval NULL if no window is associated with this widget. - \note for an Fl_Window widget, this returns its <I>parent</I> window - (if any), not <I>this</I> window. - */ Fl_Window* window() const ; + Fl_Window* top_window() const; /** Returns an Fl_Group pointer if this widget is an Fl_Group. |
