Hoops Visualize HPS  version 2018-SP2
Hoops Visualize HPS 3D Rendering Engine
Looking for a senior C++ dev?
I'm looking for work. Hire me!
HPS::StandAloneWindowEvent Class Reference

The StandAloneWindowEvent class is the event that is generated by a Standalone window. More...

#include <hps.h>

Inheritance diagram for HPS::StandAloneWindowEvent:
Collaboration diagram for HPS::StandAloneWindowEvent:

Public Types

enum  Action : uint32_t {
  Action::Unknown,
  Action::Close,
  Action::FocusIn,
  Action::FocusOut
}
 Enumeration of various actions StandAloneWindowEvent. More...
 
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

 StandAloneWindowEvent ()
 The default constructor creates an StandAloneWindowEvent object with an empty message and code of 0. More...
 
 StandAloneWindowEvent (Action in_action)
 This constructor creates a StandAloneWindowEvent object for a given action. More...
 
 StandAloneWindowEvent (Event const &in_event)
 This constructor converts an Event Object to a StandAloneWindowEvent object. More...
 
 ~StandAloneWindowEvent ()
 
EventClone () const
 Allocates and returns a copy of this ErrorEvent. More...
 
virtual bool Equals (StandAloneWindowEvent const &in_that) const
 Check if the source object is equivalent to this object. More...
 
virtual bool operator== (StandAloneWindowEvent const &in_that) const
 Check if the source object is equivalent to this object. More...
 
virtual bool operator!= (StandAloneWindowEvent const &in_that) const
 Check if the source object is not equivalent to this object. More...
 
intptr_t GetClassID () const
 Returns a unique identifier that is shared by all objects of the same class. 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 ()
 

Public Attributes

Action action
 The action for this StandAloneWindowEvent. More...
 

Protected Attributes

intptr_t channel
 
bool consumable
 

Detailed Description

The StandAloneWindowEvent class is the event that is generated by a Standalone window.

Member Enumeration Documentation

◆ Action

enum HPS::StandAloneWindowEvent::Action : uint32_t
strong

Enumeration of various actions StandAloneWindowEvent.

Enumerator
Unknown 

The StandAloneWindow has recieved a unknown message.

Close 

The StandAloneWindow has recieved a close.

FocusIn 
FocusOut 

◆ Status

enum HPS::Event::Status : uint32_t
stronginherited

Event Status - returned from a notifier to give the status of the event.

Enumerator
InProgress 

Event is still in progress.

Completed 

Event has completed.

Failed 

Event failed.

Constructor & Destructor Documentation

◆ StandAloneWindowEvent() [1/3]

HPS::StandAloneWindowEvent::StandAloneWindowEvent ( )
inline

The default constructor creates an StandAloneWindowEvent object with an empty message and code of 0.

◆ StandAloneWindowEvent() [2/3]

HPS::StandAloneWindowEvent::StandAloneWindowEvent ( Action  in_action)
inline

This constructor creates a StandAloneWindowEvent object for a given action.

Parameters
in_actionAction of this StandAloneWindowEvent.

◆ StandAloneWindowEvent() [3/3]

HPS::StandAloneWindowEvent::StandAloneWindowEvent ( Event const &  in_event)
inline

This constructor converts an Event Object to a StandAloneWindowEvent object.

Parameters
in_eventThe Event Object to be converted.
Here is the call graph for this function:

◆ ~StandAloneWindowEvent()

HPS::StandAloneWindowEvent::~StandAloneWindowEvent ( )

Member Function Documentation

◆ Clone()

Event* HPS::StandAloneWindowEvent::Clone ( ) const
inlinevirtual

Allocates and returns a copy of this ErrorEvent.

Returns
A copy of this ErrorEvent.

Implements HPS::Event.

◆ Drop()

virtual bool HPS::Event::Drop ( Event const *  in_that_event) const
inlinevirtualinherited

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.

◆ Equals()

virtual bool HPS::StandAloneWindowEvent::Equals ( StandAloneWindowEvent const &  in_that) const
inlinevirtual

Check if the source object is equivalent to this object.

Parameters
in_eventThe source object to compare to this object.
Returns
true if the objects are equivalent, false otherwise.

◆ Freshen()

virtual intptr_t HPS::Event::Freshen ( ) const
inlinevirtualinherited

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.

Returns
A cookie representing the freshen category. Zero indicates a non-freshening event.

Reimplemented in HPS::MouseEvent, HPS::TimerTickEvent, and HPS::CameraChangedEvent.

◆ GetChannel()

intptr_t HPS::Event::GetChannel ( ) const
inlineinherited

Returns the channel ID assigned to an event.

Here is the caller graph for this function:

◆ GetClassID()

intptr_t HPS::Event::GetClassID ( ) const
inherited

Returns a unique identifier that is shared by all objects of the same class.

Here is the caller graph for this function:

◆ GetTimeStamp()

Time HPS::Event::GetTimeStamp ( ) const
inlineinherited

Returns the time an event was injected into the event queue.

◆ IsConsumable()

bool HPS::Event::IsConsumable ( ) const
inlineinherited

Indicates whether an event will be consumed when it is handled or passed on to the next handler anyway.

◆ operator delete()

static void HPS::Event::operator delete ( void *  in_ptr,
size_t  in_size 
)
throw (
)
inlinestaticinherited
Here is the call graph for this function:

◆ operator new()

static void* HPS::Event::operator new ( size_t  in_size)
inlinestaticinherited
Here is the call graph for this function:

◆ operator!=()

virtual bool HPS::StandAloneWindowEvent::operator!= ( StandAloneWindowEvent const &  in_that) const
inlinevirtual

Check if the source object is not equivalent to this object.

Parameters
in_eventThe source object to compare to this object.
Returns
true if the objects are not equivalent, false otherwise.

◆ operator==()

virtual bool HPS::StandAloneWindowEvent::operator== ( StandAloneWindowEvent const &  in_that) const
inlinevirtual

Check if the source object is equivalent to this object.

Parameters
in_eventThe source object to compare to this object.
Returns
true if the objects are equivalent, false otherwise.

Member Data Documentation

◆ action

Action HPS::StandAloneWindowEvent::action

The action for this StandAloneWindowEvent.

◆ channel

intptr_t HPS::Event::channel
protectedinherited

◆ consumable

bool HPS::Event::consumable
protectedinherited

The documentation for this class was generated from the following file: