1 \section{\class{wxEvent
}}\label{wxevent
}
3 An event is a structure holding information about an event passed to a
4 callback or member function.
{\bf wxEvent
} used to be a multipurpose
5 event object, and is an abstract base class for other event classes (see below).
7 \wxheading{Derived from
}
9 \helpref{wxObject
}{wxobject
}
13 \helpref{wxCommandEvent
}{wxcommandevent
},
\rtfsp
14 \helpref{wxMouseEvent
}{wxmouseevent
}
16 \latexignore{\rtfignore{\wxheading{Members
}}}
18 \membersection{wxEvent::wxEvent
}
20 \func{}{wxEvent
}{\param{int
}{id =
0}}
22 Constructor. Should not need to be used directly by an application.
24 \membersection{wxEvent::m
\_eventHandle}
26 \member{char*
}{m
\_eventHandle}
28 Handle of an underlying windowing system event handle, such as
29 XEvent. Not guaranteed to be instantiated.
31 \membersection{wxEvent::m
\_eventObject}
33 \member{wxObject*
}{m
\_eventObject}
35 The object (usually a window) that the event was generated from,
38 \membersection{wxEvent::m
\_eventType}
40 \member{WXTYPE
}{m
\_eventType}
42 The type of the event, such as wxEVENT
\_TYPE\_BUTTON\_COMMAND.
44 \membersection{wxEvent::m
\_id}
48 Identifier for the window.
50 \membersection{wxEvent::m
\_skipped}
52 \member{bool
}{m
\_skipped}
54 Set to TRUE by
{\bf Skip
} if this event should be skipped.
56 \membersection{wxEvent::m
\_timeStamp}
58 \member{long
}{m
\_timeStamp}
60 Timestamp for this event.
62 \membersection{wxEvent::GetEventClass
}
64 \func{WXTYPE
}{GetEventClass
}{\void}
66 Returns the identifier of the given event class,
67 such as wxTYPE
\_MOUSE\_EVENT.
69 \membersection{wxEvent::GetEventObject
}
71 \func{wxObject*
}{GetEventObject
}{\void}
73 Returns the object associated with the
76 \membersection{wxEvent::GetEventType
}
78 \func{WXTYPE
}{GetEventType
}{\void}
80 Returns the identifier of the given event type,
81 such as wxEVENT
\_TYPE\_BUTTON\_COMMAND.
83 \membersection{wxEvent::GetId
}
85 \func{int
}{GetId
}{\void}
87 Returns the identifier associated with this event, such as a button command id.
89 \membersection{wxEvent::GetObjectType
}
91 \func{WXTYPE
}{GetObjectType
}{\void}
93 Returns the type of the object associated with the
94 event, such as wxTYPE
\_BUTTON.
96 \membersection{wxEvent::GetSkipped
}
98 \func{bool
}{GetSkipped
}{\void}
100 Returns TRUE if the event handler should be skipped, FALSE otherwise.
102 \membersection{wxEvent::GetTimestamp
}
104 \func{long
}{GetTimestamp
}{\void}
106 Gets the timestamp for the event.
108 \membersection{wxEvent::SetEventObject
}
110 \func{void
}{SetEventObject
}{\param{wxObject*
}{object
}}
112 Sets the originating object.
114 \membersection{wxEvent::SetEventType
}
116 \func{void
}{SetEventType
}{\param{WXTYPE
}{typ
}}
120 \membersection{wxEvent::SetId
}
122 \func{void
}{SetId
}{\param{int
}{ id
}}
124 Sets the identifier associated with this event, such as a button command id.
126 \membersection{wxEvent::SetTimestamp
}
128 \func{void
}{SetTimestamp
}{\param{long
}{timeStamp
}}
130 Sets the timestamp for the event.
132 Sets the originating object.
134 \membersection{wxEvent::Skip
}\label{wxeventskip
}
136 \func{void
}{Skip
}{\param{bool
}{ skip = TRUE
}}
138 Called by an event handler to tell the event system that the
139 event handler should be skipped, and the next valid handler used