mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
20 lines
459 B
C++
20 lines
459 B
C++
#include "../../include/gui/Widget.hpp"
|
|
#include "../../include/gui/WidgetContainer.hpp"
|
|
|
|
namespace gsr {
|
|
Widget::Widget() {
|
|
WidgetContainer::get_instance().add_widget(this);
|
|
}
|
|
|
|
Widget::~Widget() {
|
|
WidgetContainer::get_instance().remove_widget(this);
|
|
}
|
|
|
|
void Widget::set_position(mgl::vec2f position) {
|
|
this->position = position;
|
|
}
|
|
|
|
mgl::vec2f Widget::get_position() const {
|
|
return position;
|
|
}
|
|
} |