Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::RmlEngine Namespace Reference

Functions

auto input_event_handler (Rml::Context *context, const os::event &event) -> bool
 Process ospp event and forward to RmlUi context.
 
auto convert_key (os::key::code ospp_key) -> Rml::Input::KeyIdentifier
 Convert ospp key code to RmlUi key identifier.
 
auto convert_mouse_button (os::mouse::button ospp_button) -> int
 Convert ospp mouse button to RmlUi mouse button.
 
auto convert_rml_key_to_ospp (Rml::Input::KeyIdentifier rml_key) -> os::key::code
 Convert RmlUi key identifier to ospp key code.
 
auto convert_rml_key_to_input (Rml::Input::KeyIdentifier rml_key) -> input::key_code
 Convert RmlUi key identifier to engine input key code.
 
auto get_key_modifier_state () -> int
 Get current key modifier state.
 

Function Documentation

◆ convert_key()

auto unravel::RmlEngine::convert_key ( os::key::code ospp_key) -> Rml::Input::KeyIdentifier

Convert ospp key code to RmlUi key identifier.

Parameters
ospp_keyospp key code
Returns
RmlUi key identifier

Definition at line 275 of file RmlUi_SystemInterface.cpp.

◆ convert_mouse_button()

auto unravel::RmlEngine::convert_mouse_button ( os::mouse::button ospp_button) -> int

Convert ospp mouse button to RmlUi mouse button.

Parameters
ospp_buttonospp mouse button
Returns
RmlUi mouse button index

Definition at line 465 of file RmlUi_SystemInterface.cpp.

◆ convert_rml_key_to_input()

auto unravel::RmlEngine::convert_rml_key_to_input ( Rml::Input::KeyIdentifier rml_key) -> input::key_code

Convert RmlUi key identifier to engine input key code.

Parameters
rml_keyRmlUi key identifier
Returns
engine input key code

Definition at line 703 of file RmlUi_SystemInterface.cpp.

◆ convert_rml_key_to_ospp()

auto unravel::RmlEngine::convert_rml_key_to_ospp ( Rml::Input::KeyIdentifier rml_key) -> os::key::code

Convert RmlUi key identifier to ospp key code.

Parameters
rml_keyRmlUi key identifier
Returns
ospp key code

Definition at line 478 of file RmlUi_SystemInterface.cpp.

◆ get_key_modifier_state()

auto unravel::RmlEngine::get_key_modifier_state ( ) -> int

Get current key modifier state.

Returns
RmlUi key modifier flags

Definition at line 927 of file RmlUi_SystemInterface.cpp.

◆ input_event_handler()

auto unravel::RmlEngine::input_event_handler ( Rml::Context * context,
const os::event & event ) -> bool

Process ospp event and forward to RmlUi context.

Parameters
contextRmlUi context to receive events
eventospp event to process
Returns
True if event should continue propagating, false if handled

Definition at line 191 of file RmlUi_SystemInterface.cpp.