aboutsummaryrefslogtreecommitdiff
path: root/src/gui/List.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-11 01:49:10 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-11 01:49:10 +0200
commit234cc3391eba6be67964e5c98beeecd318b8e779 (patch)
tree32bc82687245ebb5d43faf8b6e116883535a9688 /src/gui/List.cpp
parent8746e8e43c9c47454ca7a115969cd07746fd832e (diff)
Load settings from config file
Diffstat (limited to 'src/gui/List.cpp')
-rw-r--r--src/gui/List.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/List.cpp b/src/gui/List.cpp
index 81f0e80..510de6b 100644
--- a/src/gui/List.cpp
+++ b/src/gui/List.cpp
@@ -119,6 +119,10 @@ namespace gsr {
widgets.remove(widget);
}
+ void List::clear() {
+ widgets.clear();
+ }
+
void List::for_each_child_widget(std::function<bool(std::unique_ptr<Widget> &widget)> callback) {
widgets.for_each(callback);
}