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,25 @@
|
||||
#pragma once
|
||||
#include "Attributes.h"
|
||||
#include "Containers/Array.h"
|
||||
#include "MinimalEngine.h"
|
||||
#include "Style/Style.h"
|
||||
|
||||
namespace Seele {
|
||||
namespace UI {
|
||||
struct RenderElement;
|
||||
DECLARE_REF(Element)
|
||||
class Element {
|
||||
public:
|
||||
Element(Attributes attr, Array<OElement> children);
|
||||
virtual ~Element();
|
||||
virtual void calcStyle(Style parentStyle) = 0;
|
||||
Array<RenderElement> render();
|
||||
|
||||
protected:
|
||||
Style style;
|
||||
Attributes attr;
|
||||
Array<OElement> children;
|
||||
};
|
||||
DEFINE_REF(Element)
|
||||
} // namespace UI
|
||||
} // namespace Seele
|
||||
Reference in new issue
Block a user