18 struct RegisteredEvent;
26 template<
typename EventArgType >
friend class EventProxy;
71 #define REGISTER_EVENT_DECLARATION( name, strategy, className, argsType ) \
72 static const ::sw::gui::RegisteredEvent* s ## name; \
73 ::sw::gui::EventProxy< argsType > name() { return ::sw::gui::EventProxy< argsType >( m_eventHandlers, s ## name ); }
75 #define REGISTER_EVENT_DEFINITION( name, strategy, className, argsType ) \
76 const ::sw::gui::RegisteredEvent* className::s ## name = ::sw::gui::EventsSystem::Get().RegisterEvent( #name, ::sw::gui::strategy, TypeID::get< className >(), TypeID::get< argsType >() );
Base class for delegates containers.
Definition: DelegateContainer.h:52
Definition: DirectInputModule.cpp:11
bool Exists(EventType eventID)
Checks if container exists.
Definition: EventHandlers.cpp:111
Interface for all controls in tree.
Definition: UIElement.h:57
uint32 EventType
Event type identifier.
Definition: RegisteredEvent.h:19
DelegatesContainerBase * FindContainer(EventType eventID)
Search for events container.
Definition: EventHandlers.cpp:26
bool RaiseEvent(const RegisteredEvent *eventInfo, UIElement *sender, IEventArgsOPtr &&arguments)
Sends event to visual tree using RoutingStrategy specyfied in eventInfo. Calls EventsSystem::RaiseEve...
Definition: EventHandlers.cpp:99
DelegatesContainerBase * AddContainer(DelegatesContainerBaseOPtr &&container)
Adds delegates container.
Definition: EventHandlers.cpp:47
bool RemoveContainer(EventType eventID)
Removes container with deelgates.
Definition: EventHandlers.cpp:65
EventHandlers()
Definition: EventHandlers.cpp:20
DelegatesContainerBaseOPtr m_delegatesList
Definition: EventHandlers.h:29
Container class for delegates.
Definition: EventHandlers.h:24
Structure describes event registered by controls.
Definition: RegisteredEvent.h:38
Helper class for accessing event.
Definition: EventProxy.h:24