summaryrefslogtreecommitdiff
path: root/FL/Fl_Widget.H
diff options
context:
space:
mode:
Diffstat (limited to 'FL/Fl_Widget.H')
-rw-r--r--FL/Fl_Widget.H19
1 files changed, 13 insertions, 6 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H
index 95351f9f2..a3a2d6ad6 100644
--- a/FL/Fl_Widget.H
+++ b/FL/Fl_Widget.H
@@ -930,16 +930,23 @@ public:
\note This method is provided to avoid dynamic_cast.
\todo More documentation ...
*/
- virtual Fl_Group* as_group() const {return 0;}
+ virtual Fl_Group* as_group() {return 0;}
/** 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() {return 0;}
- \retval NULL if this widget is not derived from Fl_Window.
- \note This method is provided to avoid dynamic_cast.
- \todo More documentation ...
+ /** Returns an Fl_Gl_Window pointer if this widget is an Fl_Gl_Window.
+ \retval NULL if this widget is not derived from Fl_Gl_Window.
+ \note This method is provided to avoid dynamic_cast.
+ \todo More documentation ...
*/
- virtual Fl_Window* as_window() const {return 0;}
-
+ virtual class Fl_Gl_Window* as_gl_window() {return 0;}
+
/** For back compatibility only.
\deprecated Use selection_color() instead.
*/