Unravel Engine C++ Reference
|
System interface implementation using engine's ospp systems. More...
#include <RmlUi_SystemInterface.h>
Public Member Functions | |
RmlUi_SystemInterface () | |
~RmlUi_SystemInterface () | |
auto | init (rtti::context &ctx) -> bool |
Initialize the system interface with engine context. | |
void | shutdown () |
Cleanup resources. | |
double | GetElapsedTime () override |
Get elapsed time since application start. | |
void | SetMouseCursor (const Rml::String &cursor_name) override |
Set the mouse cursor. | |
void | SetClipboardText (const Rml::String &text) override |
Set clipboard text. | |
void | GetClipboardText (Rml::String &text) override |
Get clipboard text. | |
void | ActivateKeyboard (Rml::Vector2f caret_position, float line_height) override |
Activate virtual keyboard (for mobile/touch devices) | |
void | DeactivateKeyboard () override |
Deactivate virtual keyboard. | |
bool | LogMessage (Rml::Log::Type type, const Rml::String &message) override |
System interface implementation using engine's ospp systems.
This class provides RmlUi with access to system-level functionality through the engine's existing ospp windowing and input systems.
Definition at line 33 of file RmlUi_SystemInterface.h.
unravel::RmlUi_SystemInterface::RmlUi_SystemInterface | ( | ) |
Definition at line 24 of file RmlUi_SystemInterface.cpp.
unravel::RmlUi_SystemInterface::~RmlUi_SystemInterface | ( | ) |
Definition at line 29 of file RmlUi_SystemInterface.cpp.
|
override |
Activate virtual keyboard (for mobile/touch devices)
caret_position | Position of text caret |
line_height | Height of text line |
Definition at line 135 of file RmlUi_SystemInterface.cpp.
|
override |
Deactivate virtual keyboard.
Definition at line 148 of file RmlUi_SystemInterface.cpp.
|
override |
Get clipboard text.
text | Reference to store clipboard text |
Definition at line 130 of file RmlUi_SystemInterface.cpp.
|
override |
Get elapsed time since application start.
Definition at line 52 of file RmlUi_SystemInterface.cpp.
auto unravel::RmlUi_SystemInterface::init | ( | rtti::context & | ctx | ) | -> bool |
Initialize the system interface with engine context.
ctx | Engine context for accessing systems |
Definition at line 35 of file RmlUi_SystemInterface.cpp.
|
override |
Log the specified message.
[in] | type | Type of log message, ERROR, WARNING, etc. |
[in] | message | Message to log. |
Definition at line 161 of file RmlUi_SystemInterface.cpp.
|
override |
Set clipboard text.
text | Text to set in clipboard |
Definition at line 125 of file RmlUi_SystemInterface.cpp.
|
override |
Set the mouse cursor.
cursor_name | Name of the cursor to set |
Definition at line 64 of file RmlUi_SystemInterface.cpp.
void unravel::RmlUi_SystemInterface::shutdown | ( | ) |
Cleanup resources.
Definition at line 44 of file RmlUi_SystemInterface.cpp.