The Event class is the common base class of all events. More...
#include <hps.h>


Public Types | |
| enum | Status : uint32_t { Status::InProgress, Status::Completed, Status::Failed } |
| Event Status - returned from a notifier to give the status of the event. More... | |
Public Member Functions | |
| Event (intptr_t in_channel=0) | |
| A constructor for generating events from built-in or custom event ID's. More... | |
| virtual | ~Event () |
| intptr_t | GetClassID () const |
| Returns a unique identifier that is shared by all objects of the same class. More... | |
| virtual Event * | Clone () const =0 |
| This function is used to copy custom events classes. More... | |
| virtual bool | Drop (Event const *in_that_event) const |
| This optional function is used to determine if the current event can be dropped based on the following event in the queue. More... | |
| virtual intptr_t | Freshen () const |
| This optional function is used to determine if the current event can be dropped in favor of newer event of the same type if one is available. More... | |
| intptr_t | GetChannel () const |
| Returns the channel ID assigned to an event. More... | |
| Time | GetTimeStamp () const |
| Returns the time an event was injected into the event queue. More... | |
| bool | IsConsumable () const |
| Indicates whether an event will be consumed when it is handled or passed on to the next handler anyway. More... | |
Static Public Member Functions | |
| static void * | operator new (size_t in_size) |
| static void | operator delete (void *in_ptr, size_t in_size) throw () |
Protected Attributes | |
| intptr_t | channel |
| bool | consumable |
Private Attributes | |
| Time | time_stamp |
Friends | |
| class | HPSI::EventDispatcherImpl |
The Event class is the common base class of all events.
An event can be an error, input event, or a custom event. Events occur asynchronously and are processed in order from an event queue.
|
strong |
|
inline |
A constructor for generating events from built-in or custom event ID's.
|
virtual |
|
pure virtual |
This function is used to copy custom events classes.
Users that create custom event classes must override this function to provide the proper copying behavior.
Implemented in HPS::KeyboardEvent, HPS::MouseEvent, HPS::TouchEvent, HPS::InputEvent, HPS::HideKeyboardEvent, HPS::ShowKeyboardEvent, HPS::ImportStatusEvent, HPS::UpdateCompletedEvent, HPS::TextInputEvent, HPS::FocusLostEvent, HPS::StandAloneWindowEvent, HPS::ErrorEvent, HPS::WarningEvent, HPS::InformationEvent, HPS::HighlightEvent, HPS::TimerTickEvent, HPS::Exchange::CommonMeasurementOperator::MeasurementDeletedEvent, HPS::Exchange::CommonMeasurementOperator::MeasurementInsertedEvent, HPS::SmoothTransitionCompleteEvent, HPS::CaptureActivationEvent, HPS::FilterActivationEvent, HPS::ComponentHighlightEvent, HPS::ComponentIsolateEvent, HPS::HandlesOperator::GeometryTransformedEvent, HPS::AnnotationOperator::AnnotationInsertedEvent, HPS::MarkupOperator::MarkupInsertedEvent, HPS::CameraChangedEvent, HPS::ModelDeletedEvent, HPS::ModelDetachedEvent, HPS::ViewDeletedEvent, HPS::ViewDetachedEvent, HPS::LayoutDeletedEvent, HPS::LayoutDetachedEvent, and HPS::CanvasDeletedEvent.
|
inlinevirtual |
This optional function is used to determine if the current event can be dropped based on the following event in the queue.
Reimplemented in HPS::MouseEvent, HPS::TouchEvent, HPS::TimerTickEvent, HPS::SmoothTransitionCompleteEvent, and HPS::CameraChangedEvent.
|
inlinevirtual |
This optional function is used to determine if the current event can be dropped in favor of newer event of the same type if one is available.
Reimplemented in HPS::MouseEvent, HPS::TimerTickEvent, and HPS::CameraChangedEvent.
|
inline |
Returns the channel ID assigned to an event.

| intptr_t HPS::Event::GetClassID | ( | ) | const |
Returns a unique identifier that is shared by all objects of the same class.

|
inline |
Returns the time an event was injected into the event queue.
|
inline |
Indicates whether an event will be consumed when it is handled or passed on to the next handler anyway.
|
inlinestatic | ||||||||||||||||||||

|
inlinestatic |

|
friend |
|
protected |
|
protected |
|
private |