30 #include <glm/vec2.hpp>
32 #include "eng3d/ui/widget.hpp"
33 #include "eng3d/ui/label.hpp"
34 #include "eng3d/ui/ui.hpp"
35 #include "eng3d/texture.hpp"
36 #include "eng3d/rectangle.hpp"
37 #include "eng3d/state.hpp"
54 if(this->text_texture.get() !=
nullptr) {
55 this->text_offset_x = this->text_offset_y = 0;
56 this->width = this->text_texture->width;
57 this->height = this->text_texture->height;
virtual void set_text(const std::string &_text)
Generates text for the widget and overrides the current text texture.
Label(int x, int y, const std::string &text=" ", Widget *parent=nullptr)
WidgetType
The type of the widget, some widgets share types between them to keep simplicity.