forked from Dynamitos/Seele
Refactoring basic text rendering
This commit is contained in:
1 parent
eef78e8aa5
commit
e487867f96
70 files changed
+608
-1133
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include "UI/Element.h"
|
||||
#include "UI/Style/Class.h"
|
||||
|
||||
namespace Seele {
|
||||
namespace UI {
|
||||
class Text : public Element {
|
||||
public:
|
||||
Text(std::string text) : Element({}, {}), text(text) {}
|
||||
virtual void calcStyle(Style parentStyle) override { style = parentStyle; }
|
||||
|
||||
private:
|
||||
std::string text;
|
||||
};
|
||||
} // namespace UI
|
||||
} // namespace Seele
|
||||
Reference in new issue
Block a user