41 template<
typename ArgumentType >
82 template<
typename ArgumentType >
88 template<
typename ArgumentType >
91 template<
typename ArgumentType >
94 template<
typename ArgumentType >
98 template<
typename ArgumentType >
101 template<
typename ArgumentType >
const RegisteredEvent * RegisterEvent(const char *eventName, RoutingStrategy strategy, TypeID ownerType, TypeID eventTypeId)
Registers new event and return idetifier used in DelegateContainers.
Definition: EventsSystem.cpp:50
Base class for events.
Definition: IEventArgs.h:27
Events management.
Definition: EventsSystem.h:54
RoutingStrategy
Describes how event behaves in visual tree.
Definition: RegisteredEvent.h:24
void RaiseTunnelEventForParents(const RegisteredEvent *eventInfo, UIElement *sender, ArgumentType *arguments, UIElement *raiseForElement, EventHandlerPointer< ArgumentType > handler)
Calls recursivly event for parents.
Definition: EventsSystem.inl:67
Definition: DirectInputModule.cpp:11
bool RaiseTunnelEvent(const RegisteredEvent *eventInfo, UIElement *sender, ArgumentType *arguments, EventHandlerPointer< ArgumentType > handler)
Definition: EventsSystem.inl:58
bool RaiseEvent(const RegisteredEvent *eventInfo, UIElement *sender, IEventArgsOPtr &&arguments)
Sends event to visual tree using RoutingStrategy specyfied in eventInfo.
Definition: EventsSystem.cpp:69
Interface for all controls in tree.
Definition: UIElement.h:57
bool RaiseForwardEvent(const RegisteredEvent *eventInfo, UIElement *sender, IEventArgs *arguments)
Sends event in response to other event. Use this function when you are in event handler and you want ...
Definition: EventsSystem.cpp:76
uint32 EventType
Event type identifier.
Definition: RegisteredEvent.h:19
Plik zawiera definicje podstawowych typów zmiennych.
void(UIElement::*)(UIElement *, ArgumentType *) EventHandlerPointer
Definition: EventsSystem.h:42
bool RaiseBubbleEvent(const RegisteredEvent *eventInfo, UIElement *sender, ArgumentType *arguments, EventHandlerPointer< ArgumentType > handler)
Definition: EventsSystem.inl:40
EventType m_counter
Definition: EventsSystem.h:58
rttr::type TypeID
Definition: RTTR.h:32
bool RaiseEventImpl(const RegisteredEvent *eventInfo, UIElement *sender, ArgumentType *arguments, EventHandlerPointer< ArgumentType > handler)
Definition: EventsSystem.inl:85
std::set< RegisteredEvent > m_registeredEvents
Definition: EventsSystem.h:61
bool RaiseDirectEvent(const RegisteredEvent *eventInfo, UIElement *sender, ArgumentType *arguments, EventHandlerPointer< ArgumentType > handler)
Definition: EventsSystem.inl:28
Structure describes event registered by controls.
Definition: RegisteredEvent.h:38
static EventsSystem & Get()
Definition: EventsSystem.cpp:83
std::mutex m_registerMutex
Definition: EventsSystem.h:60
EventsSystem()
Definition: EventsSystem.cpp:43