Base event class. More...
#include <gelEvent.h>
Public Member Functions | |
GelEvent (EventType tp) | |
Constructor. | |
virtual | ~GelEvent () |
Destructor. | |
EventType | getType () const |
Gets the the event type. | |
bool | isAccepted () const |
Checks whether or not the event is accepted. | |
void | accept () |
Sets the accept flag. | |
void | ignore () |
Clears the accept flag. | |
Protected Attributes | |
EventType | type |
Event type. | |
bool | acc |
Accept flag. |
Base event class.
The event contains an accepted flag, and is set by default. As a general rule, if the event is accepted, it will not be propagated to other receivers; however, the accepted flag can also be used for different reasons in some event types.
gel::GelEvent::GelEvent | ( | EventType | tp | ) | [inline] |
Constructor.
tp | : The event type. |
virtual gel::GelEvent::~GelEvent | ( | ) | [inline, virtual] |
Destructor.
EventType gel::GelEvent::getType | ( | ) | const [inline] |
Gets the the event type.
bool gel::GelEvent::isAccepted | ( | ) | const [inline] |
Checks whether or not the event is accepted.
void gel::GelEvent::accept | ( | ) | [inline] |
Sets the accept flag.
void gel::GelEvent::ignore | ( | ) | [inline] |
Clears the accept flag.
EventType gel::GelEvent::type [protected] |
Event type.
bool gel::GelEvent::acc [protected] |
Accept flag.
API Documentation by Mark D. Procarione | Generated by |