#include "gevents.h"

class GActionEvent

This event subclass represents an action event.
Constructor
GActionEvent()
GActionEvent(e)
GActionEvent(type, actionCommand) 
Creates a GActionEvent using the specified parameters or those taken from the more general event e.
Methods
getEventType() Returns the enumerated type constant corresponding to the specific type of action event.
getActionCommand() Returns the action command associated with this event.
toString() Converts the event to a human-readable representation of the event.

Constructor detail


GActionEvent();
GActionEvent(GEvent e);
GActionEvent(ActionEventType type, string actionCommand);
Creates a GActionEvent using the specified parameters or those taken from the more general event e.

Usage:

GActionEvent actionEvent;
GActionEvent actionEvent(e);
GActionEvent actionEvent(type, actionCommand);

Method detail


ActionEventType getEventType();
Returns the enumerated type constant corresponding to the specific type of action event.

Usage:

ActionEventType type = e.getEventType();

string getActionCommand();
Returns the action command associated with this event.

Usage:

string cmd = e.getActionCommand();

string toString();
Converts the event to a human-readable representation of the event.

Usage:

string str = e.toString();