|
| ~EventsSystem ()=default |
|
const RegisteredEvent * | RegisterEvent (const char *eventName, RoutingStrategy strategy, TypeID ownerType, TypeID eventTypeId) |
| Registers new event and return idetifier used in DelegateContainers. More...
|
|
bool | RaiseEvent (const RegisteredEvent *eventInfo, UIElement *sender, IEventArgsOPtr &&arguments) |
| Sends event to visual tree using RoutingStrategy specyfied in eventInfo. More...
|
|
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 to send the same event structure under different name. Good example is UIElement::MouseRightButtonDown which is sent by UIElement in response to UIElement::MouseDown event sent by EventsSystem. More...
|
|
template<typename ArgumentType > |
bool | RaiseEvent (const RegisteredEvent *eventInfo, UIElement *sender, ArgumentType *arguments, EventHandlerPointer< ArgumentType > handler) |
|
|
template<typename ArgumentType > |
bool | RaiseDirectEvent (const RegisteredEvent *eventInfo, UIElement *sender, ArgumentType *arguments, EventHandlerPointer< ArgumentType > handler) |
|
template<typename ArgumentType > |
bool | RaiseBubbleEvent (const RegisteredEvent *eventInfo, UIElement *sender, ArgumentType *arguments, EventHandlerPointer< ArgumentType > handler) |
|
template<typename ArgumentType > |
bool | RaiseTunnelEvent (const RegisteredEvent *eventInfo, UIElement *sender, ArgumentType *arguments, EventHandlerPointer< ArgumentType > handler) |
|
template<typename ArgumentType > |
void | RaiseTunnelEventForParents (const RegisteredEvent *eventInfo, UIElement *sender, ArgumentType *arguments, UIElement *raiseForElement, EventHandlerPointer< ArgumentType > handler) |
| Calls recursivly event for parents. More...
|
|
template<typename ArgumentType > |
bool | RaiseEventImpl (const RegisteredEvent *eventInfo, UIElement *sender, ArgumentType *arguments, EventHandlerPointer< ArgumentType > handler) |
|
| EventsSystem () |
|
Events management.
For now this class stores only registered events. Think about future use.
Registering events needs to be in separate dll, otherwise controls can't register their static variables.
All calsses derived from UIElement can register they own events.