RavEngine
Loading...
Searching...
No Matches
RavEngine::GUIComponent::GUIData Struct Reference
Inheritance diagram for RavEngine::GUIComponent::GUIData:
[legend]
Collaboration diagram for RavEngine::GUIComponent::GUIData:
[legend]

Public Member Functions

void AnyActionDown (const int charcode) override
 
void AnyActionUp (const int charcode) override
 
template<typename T >
void ExclusiveAccess (const T &func)
 
template<typename T >
constexpr void EnqueueUIUpdate (const T &func)
 
void ScrollY (float amt)
 
void MouseMove ()
 
void SetDimensions (uint32_t width, uint32_t height)
 

Public Attributes

Rml::Context * context = nullptr
 
locked_hashmap< std::string, Rml::ElementDocument *, SpinLock > documents
 
ConcurrentQueue< Function< void(void)> > q_a
 
ConcurrentQueue< Function< void(void)> > q_b
 
std::atomic< decltype(q_a) * > current = &q_a
 
std::atomic< decltype(q_a) * > inactive = &q_b
 
SpinLock mtx
 
uint32_t modifier_state = 0
 
struct { 
 
   float   x = 0 
 
   float   y = 0 
 
} MousePos 
 

Member Function Documentation

◆ AnyActionDown()

void GUIComponent::GUIData::AnyActionDown ( const int  charcode)
overridevirtual

Invoked when an input is pressed

Reimplemented from RavEngine::IInputListener.

◆ AnyActionUp()

void GUIComponent::GUIData::AnyActionUp ( const int  charcode)
overridevirtual

Invoked when an input is released

Reimplemented from RavEngine::IInputListener.


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