Struct defining widget component, it has a lot of redundancy and probably will need cleanup before expanding on a feature. More...
#include <VexUI.hpp>
Public Member Functions | |
| void | applyLayout (VexUI *uiManager) |
Public Attributes | |
| WidgetType | type = WidgetType::Container |
| std::string | id |
| std::string | text |
| std::string | image |
| UIUnitVec2 | size |
| float | rotation = 0.f |
| UIStyle | style |
| nlohmann::json | nodeJson |
| LayoutNode * | layoutNode = nullptr |
| std::vector< Widget * > | children |
| Widget * | parent = nullptr |
| std::function< void()> | onClick = nullptr |
| std::function< void()> | onFocusEnter = nullptr |
| std::function< void()> | onFocusLost = nullptr |
| VexUI * | ui = nullptr |
| TextAlign | textAlign = TextAlign::Left |
Struct defining widget component, it has a lot of redundancy and probably will need cleanup before expanding on a feature.
| LayoutNode* vex::Widget::layoutNode = nullptr |
| UIUnitVec2 vex::Widget::size |
| WidgetType vex::Widget::type = WidgetType::Container |