mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-04-15 23:01:10 +09:00
17 lines
490 B
C++
17 lines
490 B
C++
#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));
|
|
}
|
|
} |