Contents Up Previous Next

wxEvent: wxObject

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


wxEvent::wxEvent

void wxEvent(void)

Constructor. Should not need to be used by an application.


wxEvent::~wxEvent

void ~wxEvent(void)

Destructor. Should not need to be used by an application.


wxEvent::eventClass

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.


wxEvent::eventHandle

char * eventHandle

Handle of an underlying windowing system event handle, such as XEvent. Not guaranteed to be instantiated.


wxEvent::eventObject

wxObject * eventObject

The object (usually a window) that the event was generated from, or should be sent to.


wxEvent::eventType

WXTYPE eventType

The type of the event, such as wxEVENT_TYPE_BUTTON_COMMAND.


wxEvent::GetEventClass

WXTYPE GetEventClass(void)

Returns the identifier of the given event class, such as wxTYPE_MOUSE_EVENT.


wxEvent::GetEventObject

wxObject * GetEventObject(void)

Returns the object associated with the event, if any.


wxEvent::GetEventType

WXTYPE GetEventType(void)

Returns the identifier of the given event type, such as wxEVENT_TYPE_BUTTON_COMMAND.


wxEvent::GetObjectType

WXTYPE GetObjectType(void)

Returns the type of the object associated with the event, such as wxTYPE_BUTTON.


wxEvent::ReadEvent

pure virtual Bool ReadEvent(istream& stream)

Reads the event from the given input stream.


wxEvent::WriteEvent

pure virtual Bool WriteEvent(ostream& stream)

Writes the event to the given output stream.