diff options
Diffstat (limited to 'FL/Fl_Window.H')
| -rw-r--r-- | FL/Fl_Window.H | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/FL/Fl_Window.H b/FL/Fl_Window.H index 2b7fdf84a..b2430e958 100644 --- a/FL/Fl_Window.H +++ b/FL/Fl_Window.H @@ -415,6 +415,14 @@ public: */ void make_current(); + /** Returns an Fl_Window pointer if this widget is an Fl_Window. + + \retval NULL if this widget is not derived from Fl_Window. + \note This method is provided to avoid dynamic_cast. + \todo More documentation ... + */ + virtual Fl_Window* as_window() const { return (Fl_Window*)this; } + // for back-compatibility only: /** Changes the cursor for this window. This always calls the system, if |
