Unravel Engine C++ Reference
|
Represents a UI visual tree asset (HTML/RML document). More...
#include <ui_tree.h>
Public Types | |
using | sptr = std::shared_ptr<ui_tree> |
Shared pointer to a visual tree. | |
using | wptr = std::weak_ptr<ui_tree> |
Weak pointer to a visual tree. | |
using | uptr = std::unique_ptr<ui_tree> |
Unique pointer to a visual tree. | |
Public Member Functions | |
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. | |
Public Attributes | |
std::string | content |
The HTML/RML content of the visual tree. | |
Represents a UI visual tree asset (HTML/RML document).
This asset contains the structure and content of a UI document, similar to Unity's UXML files. It defines the hierarchy and properties of UI elements.
using unravel::ui_tree::sptr = std::shared_ptr<ui_tree> |
using unravel::ui_tree::uptr = std::unique_ptr<ui_tree> |
using unravel::ui_tree::wptr = std::weak_ptr<ui_tree> |
|
nodiscard |
Get the size of the content in bytes.
Definition at line 11 of file ui_tree.cpp.
|
nodiscard |
Check if the visual tree content is valid/non-empty.
Definition at line 6 of file ui_tree.cpp.
std::string unravel::ui_tree::content |