Unravel Engine C++ Reference
Loading...
Searching...
No Matches
ui_document_component.cpp
Go to the documentation of this file.
2
3#include <RmlUi/Core/ElementDocument.h>
4
5namespace unravel
6{
7
8// The ui_document_component is now primarily a data container.
9// All loading/unloading logic is handled by the ui_system in its update loop.
10
12{
13 return document != nullptr;
14}
15
17{
18 return enabled_;
19}
20
22{
23 enabled_ = enabled;
24}
25
26} // namespace unravel
void set_enabled(bool enabled)
Set the enabled state of the document.
Rml::ElementDocument * document
Shared pointer to the loaded RmlUi document.
auto is_enabled() const -> bool
Check if document is currently enabled.
auto is_loaded() const -> bool
Check if document is currently loaded.