mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
widgets
This commit is contained in:
@@ -1,7 +1,20 @@
|
||||
#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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user