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/uiRenderer.cpp | 170 +++++++++++++++++++++--------------------- 1 file changed, 87 insertions(+), 83 deletions(-) (limited to 'mwe/events/src/uiRenderer.cpp') diff --git a/mwe/events/src/uiRenderer.cpp b/mwe/events/src/uiRenderer.cpp index dbe8dfe..9fec272 100644 --- a/mwe/events/src/uiRenderer.cpp +++ b/mwe/events/src/uiRenderer.cpp @@ -1,103 +1,107 @@ #include "uiRenderer.h" // Constructor -UIRenderer::UIRenderer(SDL_Renderer* renderer) : renderer(renderer) {} +UIRenderer::UIRenderer(SDL_Renderer * renderer) : renderer(renderer) {} // Render function -void UIRenderer::render(UIObject* uiObject) { - if (Button* button = dynamic_cast(uiObject)) { - renderButton(button); - } else if (Text* text = dynamic_cast(uiObject)) { - renderText(text); - } else if (TextInput* textInput = dynamic_cast(uiObject)) { - renderTextInput(textInput); - } +void UIRenderer::render(UIObject * uiObject) { + if (Button * button = dynamic_cast