#include <event.h>
◆ Type
Enumerator |
---|
KEYPRESS | |
KEYDOWN | |
KEYUP | |
KEYCHAR | |
CURSORPOS | |
TICK | |
SELECTED | |
LOOK_AT | |
LAST_EVENT | |
◆ AddListener() [1/4]
◆ AddListener() [2/4]
◆ AddListener() [3/4]
◆ AddListener() [4/4]
◆ AllocateData() [1/3]
template<typename T >
static T * tram::Event::AllocateData |
( |
| ) |
|
|
inlinestatic |
◆ AllocateData() [2/3]
template<typename T >
static T * tram::Event::AllocateData |
( |
const T & |
data | ) |
|
|
inlinestatic |
◆ AllocateData() [3/3]
void * tram::Event::AllocateData |
( |
size_t |
ammount | ) |
|
|
static |
Allocates space for event data.
This allocation is useful for storing the additional data (Event::data pointer), for events, since all allocated space will be cleared once all events have been dispatched.
- Note
- Only store POD data types in the allocated memory.
◆ Dispatch()
void tram::Event::Dispatch |
( |
| ) |
|
|
static |
Dispatches events from the event queue.
◆ GetLast()
◆ GetName()
◆ GetType()
◆ Post()
void tram::Event::Post |
( |
const Event & |
event | ) |
|
|
static |
Adds an event to the event queue.
◆ Register()
event_t tram::Event::Register |
( |
const char * |
name | ) |
|
|
static |
Registers a new event type.
◆ RemoveListener()
void tram::Event::RemoveListener |
( |
listener_t |
listener_id | ) |
|
|
static |
union { ... } tram::Event::@26 |
◆ data
void* tram::Event::data = nullptr |
◆ data_int
uint64_t tram::Event::data_int |
◆ data_value
Value* tram::Event::data_value |
◆ poster_id
id_t tram::Event::poster_id |
◆ subtype
◆ type
The documentation for this struct was generated from the following files:
- C:/Users/Poga/Desktop/painis/tram-sdk/src/framework/event.h
- C:/Users/Poga/Desktop/painis/tram-sdk/src/framework/event.cpp