The EventDispatcher class is used for injecting any events and dealing with event handlers which handle those events. More...
Public Member Functions | |
override void | Dispose () |
override bool | Equals (System.Object obj) |
bool | Equals (HPS.EventDispatcher in_that) |
Check if the source EventDispatcher is equivalent to this object. More... | |
EventDispatcher () | |
The default constructor creates an uninitialized EventDispatcher object which cannot be subscribed to. More... | |
EventDispatcher (HPS.EventDispatcher in_that) | |
The copy constructor creates an EventDispatcher object that points to the same underlying impl as the source EventDispatcher. More... | |
override int | GetHashCode () |
bool | InjectEvent (HPS.Event in_event) |
Inject the specified event and propagate it to all subscribed handlers in the order of subscription. More... | |
HPS.EventNotifier | InjectEventWithNotifier (HPS.Event in_event) |
Inject the specified event and propagate it to all subscribed handlers in the order of subscription and return an EventNotifier associated with the injected event. More... | |
bool | IsShutdown () |
Query whether the asynchronous shutdown has completed. More... | |
override HPS.Type | ObjectType () |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object. More... | |
void | SetName (string in_name) |
Sets the EventDispatcher's name More... | |
void | ShowName (out string out_name) |
Shows the EventDispatcher's name More... | |
void | Shutdown () |
Shutdown this EventDispatcher asynchronously. Any pending events injected into this EventDispatcher will be processed prior to shutdown, but no new events can be injected. More... | |
bool | Subscribe (HPS.EventHandler in_handler, IntPtr in_type) |
Add the specified event handler to the list of subscribers for events of the specified type on this EventDispatcher. More... | |
bool | UnSubscribe (HPS.EventHandler in_handler, IntPtr in_type) |
Remove the specified event handler from the list of subscribers for events of the specified type on this EventDispatcher. More... | |
bool | UnSubscribe (HPS.EventHandler in_handler) |
Remove the specified event handler from the list of subscribers for events of the specified type on this EventDispatcher. More... | |
bool | UnSubscribe (IntPtr in_type) |
Remove the specified event handler from the list of subscribers for events of the specified type on this EventDispatcher. More... | |
![]() | |
virtual bool | Empty () |
Indicates whether this object has any values set on it. More... | |
IntPtr | GetClassID () |
IntPtr | GetInstanceID () |
Returns an identifier that can be used to identify which instance of a class an object is. Different keys and controls will return the same value if they are backed by the same database resource. More... | |
bool | HasType (HPS.Type in_mask) |
This function indicates whether this Object has the given Type mask. More... | |
Object (HPS.Object that) | |
virtual void | Reset () |
Resets this object to its initial, uninitialized state. More... | |
HPS.Type | Type () |
This function returns the true type of the underlying object. This function is useful for finding the type of smart pointer objects that have been cast to more generic types. More... | |
Static Public Member Functions | |
static bool | operator!= (HPS.EventDispatcher a, HPS.EventDispatcher b) |
static bool | operator== (HPS.EventDispatcher a, HPS.EventDispatcher b) |
![]() | |
static IntPtr | ClassID< T > () |
Protected Member Functions | |
override void | deleteCptr () |
![]() | |
virtual IntPtr | GetNonDirectorClassID () |
Additional Inherited Members | |
![]() | |
bool | cMemOwn |
HandleRef | cptr |
HandleRef | scptr |
The EventDispatcher class is used for injecting any events and dealing with event handlers which handle those events.
|
inline |
The default constructor creates an uninitialized EventDispatcher object which cannot be subscribed to.
|
inline |
The copy constructor creates an EventDispatcher object that points to the same underlying impl as the source EventDispatcher.
in_that | The source EventHandler to point to. |
|
inline |
Check if the source EventDispatcher is equivalent to this object.
in_that | The source EventDispatcher to compare to this object. |
|
inline |
Inject the specified event and propagate it to all subscribed handlers in the order of subscription.
in_event | Event to inject and propagate. |
|
inline |
Inject the specified event and propagate it to all subscribed handlers in the order of subscription and return an EventNotifier associated with the injected event.
in_event | Event to inject and propagate. |
|
inline |
Query whether the asynchronous shutdown has completed.
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS.Object.
|
inline |
Sets the EventDispatcher's name
in_name | Name to set. |
|
inline |
Shows the EventDispatcher's name
out_name | Current name of this EventDispatcher. |
|
inline |
Shutdown this EventDispatcher asynchronously. Any pending events injected into this EventDispatcher will be processed prior to shutdown, but no new events can be injected.
|
inline |
Add the specified event handler to the list of subscribers for events of the specified type on this EventDispatcher.
in_handler | Event handler to add to the subscriber list for events of the given type. |
in_type | Type of event to add the handler for. |
|
inline |
Remove the specified event handler from the list of subscribers for events of the specified type on this EventDispatcher.
in_handler | Event handler to remove from the subscriber list for events of the given type. |
in_type | Type of event to remove the handler for. |
|
inline |
Remove the specified event handler from the list of subscribers for events of the specified type on this EventDispatcher.
in_handler | Event handler to remove from the subscriber list for events of the given type. |
|
inline |
Remove the specified event handler from the list of subscribers for events of the specified type on this EventDispatcher.
in_type | Type of event to remove the handler for. |