Added support to TextComponent to return the horizontal and vertical alignments.

This commit is contained in:
Leon Styhre 2021-03-21 11:50:13 +01:00
parent d9c7932f0d
commit d90f29b931

View file

@ -65,6 +65,8 @@ public:
unsigned int getColor() const override { return mColor; }; unsigned int getColor() const override { return mColor; };
inline std::shared_ptr<Font> getFont() const override { return mFont; } inline std::shared_ptr<Font> getFont() const override { return mFont; }
Alignment getHorizontalAlignment() { return mHorizontalAlignment; }
Alignment getVerticalAlignment() { return mVerticalAlignment; }
protected: protected:
virtual void onTextChanged(); virtual void onTextChanged();