Sleeping Wombat GUI  0.100
swGUI
RegisteredEvent.h
Go to the documentation of this file.
1 #pragma once
2 
11 
12 
13 namespace sw {
14 namespace gui
15 {
16 
19 typedef uint32 EventType;
20 
21 
24 enum class RoutingStrategy : uint8
25 {
26  Bubble,
27  Direct,
28  Tunnel
29 };
30 
31 
32 
39 {
42  EventType ID;
44  std::string EventName;
45 
46 // ================================ //
47 //
48  RegisteredEvent( const std::string& eventName, RoutingStrategy strategy, TypeID ownerType, TypeID eventTypeId )
49  : EventName( eventName )
50  , Strategy( strategy )
51  , OwnerType( ownerType )
52  , EventArgumentsType( eventTypeId )
53  {}
54 };
55 
56 // Implementation in EventsSystem.cpp
57 bool operator<( const RegisteredEvent& left, const RegisteredEvent& right );
58 
59 
60 } // gui
61 } // sw
std::string EventName
Definition: RegisteredEvent.h:44
RoutingStrategy
Describes how event behaves in visual tree.
Definition: RegisteredEvent.h:24
Definition: DirectInputModule.cpp:11
TypeID OwnerType
Definition: RegisteredEvent.h:40
uint32 EventType
Event type identifier.
Definition: RegisteredEvent.h:19
Plik zawiera definicje podstawowych typów zmiennych.
uint32_t uint32
Definition: TypesDefinitions.h:31
RoutingStrategy Strategy
Definition: RegisteredEvent.h:43
TypeID EventArgumentsType
Definition: RegisteredEvent.h:41
uint8_t uint8
Definition: TypesDefinitions.h:27
rttr::type TypeID
Definition: RTTR.h:32
RegisteredEvent(const std::string &eventName, RoutingStrategy strategy, TypeID ownerType, TypeID eventTypeId)
Definition: RegisteredEvent.h:48
EventType ID
Definition: RegisteredEvent.h:42
bool operator<(const RegisteredEvent &left, const RegisteredEvent &right)
Definition: EventsSystem.cpp:22
Structure describes event registered by controls.
Definition: RegisteredEvent.h:38