From 3fe3f24427853500b1b2c63aa1c0f6a728896e6f Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Wed, 10 Apr 2013 20:51:24 +0000 Subject: 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 --- FL/Fl_Widget.H | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'FL') 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 parent window - (if any), not this window. - */ Fl_Window* window() const ; + Fl_Window* top_window() const; /** Returns an Fl_Group pointer if this widget is an Fl_Group. -- cgit v1.2.3