2#include <engine/engine_export.h>
10 class ElementDocument;
26 using sptr = std::shared_ptr<ui_tree>;
27 using wptr = std::weak_ptr<ui_tree>;
28 using uptr = std::unique_ptr<ui_tree>;
37 [[nodiscard]]
auto is_valid() const ->
bool;
Represents a UI visual tree asset (HTML/RML document).
std::shared_ptr< ui_tree > sptr
Shared pointer to a visual tree.
std::weak_ptr< ui_tree > wptr
Weak pointer to a visual tree.
std::string content
The HTML/RML content of the visual tree.
auto is_valid() const -> bool
Check if the visual tree content is valid/non-empty.
auto get_content_size() const -> size_t
Get the size of the content in bytes.
std::unique_ptr< ui_tree > uptr
Unique pointer to a visual tree.