From 5c482f9d9b357e098f955351f425bc985254ff28 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 18 Mar 2023 17:33:27 +0100 Subject: Fix and update alignment #346 (#701) * interactive layout alignment rewritten * interface for new alignment rules * new alignment dialog box * user defined layout rules added * layout rules can be stored in projects, settings, and external files * Valgrind verification --- FL/Fl_Widget.H | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'FL/Fl_Widget.H') diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H index b0317dc6e..969aee6fa 100644 --- a/FL/Fl_Widget.H +++ b/FL/Fl_Widget.H @@ -1091,7 +1091,8 @@ public: \note This method is provided to avoid dynamic_cast. \see Fl_Widget::as_window(), Fl_Widget::as_gl_window() */ - virtual Fl_Group* as_group() {return 0;} + virtual Fl_Group* as_group() { return NULL; } + virtual Fl_Group const* as_group() const { return NULL; } /** Returns an Fl_Window pointer if this widget is an Fl_Window. @@ -1105,7 +1106,8 @@ public: \note This method is provided to avoid dynamic_cast. \see Fl_Widget::as_group(), Fl_Widget::as_gl_window() */ - virtual Fl_Window* as_window() {return 0;} + virtual Fl_Window* as_window() { return 0; } + virtual Fl_Window const* as_window() const { return NULL; } /** Returns an Fl_Gl_Window pointer if this widget is an Fl_Gl_Window. @@ -1117,7 +1119,8 @@ public: \note This method is provided to avoid dynamic_cast. \see Fl_Widget::as_group(), Fl_Widget::as_window() */ - virtual class Fl_Gl_Window* as_gl_window() {return 0;} + virtual class Fl_Gl_Window* as_gl_window() { return NULL; } + virtual class Fl_Gl_Window const* as_gl_window() const { return NULL; } /** Returns non zero if MAC_USE_ACCENTS_MENU flag is set, 0 otherwise. */ -- cgit v1.2.3