From d90f29b931f9cd484759942c618d86e47d028dda Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 21 Mar 2021 11:50:13 +0100 Subject: [PATCH] Added support to TextComponent to return the horizontal and vertical alignments. --- es-core/src/components/TextComponent.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/es-core/src/components/TextComponent.h b/es-core/src/components/TextComponent.h index d1f2438b2..30070ffb4 100644 --- a/es-core/src/components/TextComponent.h +++ b/es-core/src/components/TextComponent.h @@ -65,6 +65,8 @@ public: unsigned int getColor() const override { return mColor; }; inline std::shared_ptr getFont() const override { return mFont; } + Alignment getHorizontalAlignment() { return mHorizontalAlignment; } + Alignment getVerticalAlignment() { return mVerticalAlignment; } protected: virtual void onTextChanged();