diff options
Diffstat (limited to 'src/gui/Page.cpp')
-rw-r--r-- | src/gui/Page.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/Page.cpp b/src/gui/Page.cpp index 7d43c00..ae13d82 100644 --- a/src/gui/Page.cpp +++ b/src/gui/Page.cpp @@ -1,6 +1,15 @@ #include "../../include/gui/Page.hpp" namespace gsr { + // void Page::remove_child_widget(Widget *widget) { + // for(auto it = widgets.begin(), end = widgets.end(); it != end; ++it) { + // if(it->get() == widget) { + // widgets.erase(it); + // return; + // } + // } + // } + void Page::add_widget(std::unique_ptr<Widget> widget) { widget->parent_widget = this; widgets.push_back(std::move(widget)); |