diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-11-13 19:05:25 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-11-13 19:05:25 +0100 |
commit | 0b2ca3c323c7f73d031e7014ba0a17dcf0b59751 (patch) | |
tree | 8a3ebeee7e2aab9ba064c62fce0cd33def6f2d18 /mwe/events/src/uiObject.cpp | |
parent | 1d4b3a44c9ce1e69f4f0e3909998225f8af3fea2 (diff) | |
parent | f2509e89c02894ebd3ad992324eb300103621d26 (diff) |
merge with master
Diffstat (limited to 'mwe/events/src/uiObject.cpp')
-rw-r--r-- | mwe/events/src/uiObject.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mwe/events/src/uiObject.cpp b/mwe/events/src/uiObject.cpp index 8405469..947d1a2 100644 --- a/mwe/events/src/uiObject.cpp +++ b/mwe/events/src/uiObject.cpp @@ -7,7 +7,9 @@ UIObject::UIObject(int width, int height) : width(width), height(height) {} Button::Button(int width, int height) : UIObject(width, height) {} Text::Text(int width, int height) - : UIObject(width, height), size(12), font(nullptr), + : UIObject(width, height), + size(12), + font(nullptr), color{255, 255, 255} { // Default size and color alignment.horizontal = Alignment::Horizontal::CENTER; alignment.vertical = Alignment::Vertical::MIDDLE; @@ -15,8 +17,13 @@ Text::Text(int width, int height) } TextInput::TextInput(int width, int height) - : UIObject(width, height), textBuffer(""), placeholder(""), isActive(false), - textColor{255, 255, 255}, backgroundColor{0, 0, 0}, maxLength(100), + : UIObject(width, height), + textBuffer(""), + placeholder(""), + isActive(false), + textColor{255, 255, 255}, + backgroundColor{0, 0, 0}, + maxLength(100), font(nullptr) { alignment.horizontal = Alignment::Horizontal::LEFT; alignment.vertical = Alignment::Vertical::TOP; |