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
}
11 \wxheading{Include files
}
17 \helpref{wxCommandEvent
}{wxcommandevent
},
\rtfsp
18 \helpref{wxMouseEvent
}{wxmouseevent
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxEvent::wxEvent
}
24 \func{}{wxEvent
}{\param{int
}{id =
0}}
26 Constructor. Should not need to be used directly by an application.
28 \membersection{wxEvent::m
\_eventHandle}
30 \member{char*
}{m
\_eventHandle}
32 Handle of an underlying windowing system event handle, such as
33 XEvent. Not guaranteed to be instantiated.
35 \membersection{wxEvent::m
\_eventObject}
37 \member{wxObject*
}{m
\_eventObject}
39 The object (usually a window) that the event was generated from,
42 \membersection{wxEvent::m
\_eventType}
44 \member{WXTYPE
}{m
\_eventType}
46 The type of the event, such as wxEVENT
\_TYPE\_BUTTON\_COMMAND.
48 \membersection{wxEvent::m
\_id}
52 Identifier for the window.
54 \membersection{wxEvent::m
\_skipped}
56 \member{bool
}{m
\_skipped}
58 Set to TRUE by
{\bf Skip
} if this event should be skipped.
60 \membersection{wxEvent::m
\_timeStamp}
62 \member{long
}{m
\_timeStamp}
64 Timestamp for this event.
66 \membersection{wxEvent::GetEventObject
}
68 \func{wxObject*
}{GetEventObject
}{\void}
70 Returns the object associated with the
73 \membersection{wxEvent::GetEventType
}
75 \func{WXTYPE
}{GetEventType
}{\void}
77 Returns the identifier of the given event type,
78 such as wxEVENT
\_TYPE\_BUTTON\_COMMAND.
80 \membersection{wxEvent::GetId
}
82 \func{int
}{GetId
}{\void}
84 Returns the identifier associated with this event, such as a button command id.
86 \membersection{wxEvent::GetObjectType
}
88 \func{WXTYPE
}{GetObjectType
}{\void}
90 Returns the type of the object associated with the
91 event, such as wxTYPE
\_BUTTON.
93 \membersection{wxEvent::GetSkipped
}
95 \func{bool
}{GetSkipped
}{\void}
97 Returns TRUE if the event handler should be skipped, FALSE otherwise.
99 \membersection{wxEvent::GetTimestamp
}
101 \func{long
}{GetTimestamp
}{\void}
103 Gets the timestamp for the event.
105 \membersection{wxEvent::SetEventObject
}
107 \func{void
}{SetEventObject
}{\param{wxObject*
}{object
}}
109 Sets the originating object.
111 \membersection{wxEvent::SetEventType
}
113 \func{void
}{SetEventType
}{\param{WXTYPE
}{typ
}}
117 \membersection{wxEvent::SetId
}
119 \func{void
}{SetId
}{\param{int
}{ id
}}
121 Sets the identifier associated with this event, such as a button command id.
123 \membersection{wxEvent::SetTimestamp
}
125 \func{void
}{SetTimestamp
}{\param{long
}{timeStamp
}}
127 Sets the timestamp for the event.
129 Sets the originating object.
131 \membersection{wxEvent::Skip
}\label{wxeventskip
}
133 \func{void
}{Skip
}{\param{bool
}{ skip = TRUE
}}
135 Called by an event handler to tell the event system that the
136 event handler should be skipped, and the next valid handler used