Refactoring basic text rendering

This commit is contained in:
Dynamitos committed 2025-01-08 19:15:12 +01:00
1 parent eef78e8aa5
commit e487867f96
70 files changed
+608 -1133

No files matched your search

+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