From 2585dc3cab48ccad0cfa0c63354662d656c86c46 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 3 Nov 2024 13:34:27 +0100 Subject: `make format` --- mwe/events/src/uiObject.cpp | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) (limited to 'mwe/events/src/uiObject.cpp') diff --git a/mwe/events/src/uiObject.cpp b/mwe/events/src/uiObject.cpp index 31ff486..8405469 100644 --- a/mwe/events/src/uiObject.cpp +++ b/mwe/events/src/uiObject.cpp @@ -1,28 +1,24 @@ #include "uiObject.h" // Constructor for UIObject -UIObject::UIObject(int width, int height) - : width(width), height(height){ - - } +UIObject::UIObject(int width, int height) : width(width), height(height) {} // Constructor for Button -Button::Button(int width, int height) - : UIObject(width, height) { -} +Button::Button(int width, int height) : UIObject(width, height) {} Text::Text(int width, int height) - : 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; - alignment.mode = Alignment::PositioningMode::RELATIVE; + : 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; + alignment.mode = Alignment::PositioningMode::RELATIVE; } TextInput::TextInput(int width, int height) - : 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; - alignment.mode = Alignment::PositioningMode::RELATIVE; + : 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; + alignment.mode = Alignment::PositioningMode::RELATIVE; } - -- cgit v1.2.3