mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-04-11 05:19:46 +09:00
16 lines
438 B
C++
16 lines
438 B
C++
#include "../../include/gui/Page.hpp"
|
|
|
|
namespace gsr {
|
|
Page::~Page() {
|
|
widgets.for_each([this](std::unique_ptr<Widget> &widget) {
|
|
if(widget->parent_widget == this)
|
|
widget->parent_widget = nullptr;
|
|
return true;
|
|
}, true);
|
|
}
|
|
|
|
void Page::add_widget(std::unique_ptr<Widget> widget) {
|
|
widget->parent_widget = this;
|
|
widgets.push_back(std::move(widget));
|
|
}
|
|
} |