summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-05-25 17:39:20 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-05-25 17:39:20 +0200
commit9abbff2078e2a092ecc252f6b147c24fe567f616 (patch)
treefe9a479d2370cc8dcb60d262158f3aa336d183a2 /FL
parentda4d16b59ab354e9c1fc944e814519bd8e251922 (diff)
Add virtual int Fl_Group::delete_child(int n) (STR 3218)
This is a convenience method that does range checking (index n), removes the child given by index n from the group and deletes it.
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Group.H5
1 files changed, 4 insertions, 1 deletions
diff --git a/FL/Fl_Group.H b/FL/Fl_Group.H
index 5d28f8cdd..2271962b3 100644
--- a/FL/Fl_Group.H
+++ b/FL/Fl_Group.H
@@ -1,7 +1,7 @@
//
// Group header file for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2020 by Bill Spitzak and others.
+// Copyright 1998-2021 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -117,6 +117,9 @@ public:
void remove(Fl_Widget* o) {remove(*o);}
void clear();
+ /* delete child n (by index) */
+ virtual int delete_child(int n);
+
/**
Sets the group's resizable widget.
See void Fl_Group::resizable(Fl_Widget *o)