An event is a structure holding information about an event passed to a callback or member function. wxEvent used to be a multipurpose event object, and is now an abstract base class for events such as wxCommandEvent (for panel item commands) and wxMouseEvent (for mouse events on windows).
wxEvent::wxEvent
wxEvent::~wxEvent
wxEvent::eventClass
wxEvent::eventHandle
wxEvent::eventObject
wxEvent::eventType
wxEvent::GetEventClass
wxEvent::GetEventObject
wxEvent::GetEventType
wxEvent::GetObjectType
wxEvent::ReadEvent
wxEvent::WriteEvent
void wxEvent(void)
Constructor. Should not need to be used by an application.
void ~wxEvent(void)
Destructor. Should not need to be used by an application.
WXTYPE eventClass
The C++ class of the event, such as wxTYPE_COMMAND_EVENT. A single class may have many 'types'; it would be tedious to define a new C++ class for each type of similar event.
char * eventHandle
Handle of an underlying windowing system event handle, such as XEvent. Not guaranteed to be instantiated.
wxObject * eventObject
The object (usually a window) that the event was generated from, or should be sent to.
WXTYPE eventType
The type of the event, such as wxEVENT_TYPE_BUTTON_COMMAND.
WXTYPE GetEventClass(void)
Returns the identifier of the given event class, such as wxTYPE_MOUSE_EVENT.
wxObject * GetEventObject(void)
Returns the object associated with the event, if any.
WXTYPE GetEventType(void)
Returns the identifier of the given event type, such as wxEVENT_TYPE_BUTTON_COMMAND.
WXTYPE GetObjectType(void)
Returns the type of the object associated with the event, such as wxTYPE_BUTTON.
pure virtual Bool ReadEvent(istream& stream)
Reads the event from the given input stream.
pure virtual Bool WriteEvent(ostream& stream)
Writes the event to the given output stream.