summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-11-01 20:45:31 +0100
committerGitHub <noreply@github.com>2022-11-01 20:45:31 +0100
commit33f01ecb836f9bd70447fcd7ab0f7eda27d224db (patch)
tree4f0c640c3199e34aa47962569d5eeafb930de051 /FL
parentc570bd8f96902a2f290f7623b8cf3074ac8f97ca (diff)
Added Fl_Group::on_insert/on_remove/on_move (#527)
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Flex.H2
-rw-r--r--FL/Fl_Group.H3
2 files changed, 5 insertions, 0 deletions
diff --git a/FL/Fl_Flex.H b/FL/Fl_Flex.H
index 1224fe828..87a1c6324 100644
--- a/FL/Fl_Flex.H
+++ b/FL/Fl_Flex.H
@@ -168,6 +168,8 @@ protected:
virtual int alloc_size(int size) const;
+ void on_remove(int); /* override */
+
public:
/** Returns the left margin size of the widget.
diff --git a/FL/Fl_Group.H b/FL/Fl_Group.H
index 1f6240070..6441b6149 100644
--- a/FL/Fl_Group.H
+++ b/FL/Fl_Group.H
@@ -74,6 +74,9 @@ protected:
void update_child(Fl_Widget& widget) const;
Fl_Rect *bounds();
int *sizes(); // FLTK 1.3 compatibility
+ virtual int on_insert(Fl_Widget*, int);
+ virtual int on_move(int, int);
+ virtual void on_remove(int);
public: