Refactoring basic text rendering

This commit is contained in:
Dynamitos
2025-01-08 19:15:12 +01:00
parent eef78e8aa5
commit e487867f96
70 changed files with 608 additions and 1133 deletions
+25
View File
@@ -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