Rebel Fork Framework
Urho3D::Detail::RmlSystem Class Reference
Inheritance diagram for Urho3D::Detail::RmlSystem:
Urho3D::RefCounted

Public Member Functions

 RmlSystem (Context *context)
 Construct.
 
double GetElapsedTime () override
 Get the number of seconds elapsed since the start of the application.
 
int TranslateString (Rml::String &translated, const Rml::String &input) override
 Translate the input string into the translated string.
 
bool LogMessage (Rml::Log::Type type, const Rml::String &message) override
 
void SetMouseCursor (const Rml::String &cursor_name) override
 
void SetClipboardText (const Rml::String &text) override
 
void GetClipboardText (Rml::String &text) override
 
void ActivateKeyboard (Rml::Vector2f caret_position, float line_height) override
 Activate keyboard (for touchscreen devices)
 
void DeactivateKeyboard () override
 Deactivate keyboard (for touchscreen devices)
 
bool TextInputActivatedThisFrame () const
 Return true if text input activation was requested on this frame.
 
- Public Member Functions inherited from Urho3D::RefCounted
 RefCounted ()
 Construct. Allocate the reference count structure and set an initial self weak reference.
 
virtual ~RefCounted ()
 Destruct. Mark as expired and also delete the reference count structure if no outside weak references exist.
 
 RefCounted (const RefCounted &rhs)=delete
 Prevent copy construction.
 
RefCountedoperator= (const RefCounted &rhs)=delete
 Prevent assignment.
 
int AddRef ()
 
int ReleaseRef ()
 
int Refs () const
 
int WeakRefs () const
 
RefCountRefCountPtr () const
 Return pointer to the reference count structure.
 
bool HasScriptObject () const
 Return true if script runtime object wrapping this native object exists.
 
bool IsScriptStrongRef () const
 Return true if script reference is strong.
 

Private Attributes

WeakPtr< Contextcontext_
 Pointer to Urho3D context.
 
unsigned textInputActivatedFrame_ = 0
 Frame on which text input was activated. Used for managing input focus between multiple RmlUi contexts.
 

Member Function Documentation

◆ GetClipboardText()

void Urho3D::Detail::RmlSystem::GetClipboardText ( Rml::String &  text)
override

Get clipboard text.

Parameters
[out]textRetrieved text from clipboard.

◆ LogMessage()

bool Urho3D::Detail::RmlSystem::LogMessage ( Rml::Log::Type  type,
const Rml::String &  message 
)
override

Log the specified message.

Parameters
[in]typeType of log message, ERROR, WARNING, etc.
[in]messageMessage to log.
Returns
True to continue execution, false to break into the debugger.

◆ SetClipboardText()

void Urho3D::Detail::RmlSystem::SetClipboardText ( const Rml::String &  text)
override

Set clipboard text.

Parameters
[in]textText to apply to clipboard.

◆ SetMouseCursor()

void Urho3D::Detail::RmlSystem::SetMouseCursor ( const Rml::String &  cursor_name)
override

Set mouse cursor.

Parameters
[in]cursor_nameCursor name to activate.

The documentation for this class was generated from the following files: