]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/mouseevt.tex
added the static function GetLabelText() to wxStaticText which was mentioned in the...
[wxWidgets.git] / docs / latex / wx / mouseevt.tex
CommitLineData
a660d684
KB
1\section{\class{wxMouseEvent}}\label{wxmouseevent}
2
ec760ec9
VZ
3This event class contains information about the events generated by the mouse:
4they include mouse buttons press and release events and mouse move events.
5
8e7cd32b
VZ
6All mouse events involving the buttons use {\tt wxMOUSE\_BTN\_LEFT} for the
7left mouse button, {\tt wxMOUSE\_BTN\_MIDDLE} for the middle one and
01101e2d
VZ
8{\tt wxMOUSE\_BTN\_RIGHT} for the right one. And if the system supports more
9buttons, the \texttt{wxMOUSE\_BTN\_AUX1} and \texttt{wxMOUSE\_BTN\_AUX2} events
10can also be generated. Note that not all mice have even a middle button so a
11portable application should avoid relying on the events from it (but the right
12button click can be emulated using the left mouse button with the control key
13under Mac platforms with a single button mouse).
a660d684 14
82999910
VZ
15For the \texttt{wxEVT\_ENTER\_WINDOW} and \texttt{wxEVT\_LEAVE\_WINDOW} events
16purposes, the mouse is considered to be inside the window if it is in the
17window client area and not inside one of its children. In other words, the
18parent window receives \texttt{wxEVT\_LEAVE\_WINDOW} event not only when the
19mouse leaves the window entirely but also when it enters one of its children.
20
faa97247 21{\bf NB:} Note that under Windows CE mouse enter and leave events are not natively supported
fc2171bd 22by the system but are generated by wxWidgets itself. This has several
4aff28fc
VZ
23drawbacks: the LEAVE\_WINDOW event might be received some time after the mouse
24left the window and the state variables for it may have changed during this
25time.
26
9b9337da
RD
27{\bf NB:} Note the difference between methods like
28\helpref{LeftDown}{wxmouseeventleftdown} and
cc81d32f 29\helpref{LeftIsDown}{wxmouseeventleftisdown}: the former returns {\tt true}
f6bcfd97 30when the event corresponds to the left mouse button click while the latter
cc81d32f 31returns {\tt true} if the left mouse button is currently being pressed. For
9b9337da 32example, when the user is dragging the mouse you can use
f6bcfd97
BP
33\helpref{LeftIsDown}{wxmouseeventleftisdown} to test
34whether the left mouse button is (still) depressed. Also, by convention, if
cc81d32f
VS
35\helpref{LeftDown}{wxmouseeventleftdown} returns {\tt true},
36\helpref{LeftIsDown}{wxmouseeventleftisdown} will also return {\tt true} in
fc2171bd 37wxWidgets whatever the underlying GUI behaviour is (which is
f6bcfd97
BP
38platform-dependent). The same applies, of course, to other mouse buttons as
39well.
40
a660d684
KB
41\wxheading{Derived from}
42
43\helpref{wxEvent}{wxevent}
44
954b8ae6
JS
45\wxheading{Include files}
46
47<wx/event.h>
48
a7af285d
VZ
49\wxheading{Library}
50
51\helpref{wxCore}{librarieslist}
52
a660d684
KB
53\wxheading{Event table macros}
54
55To process a mouse event, use these event handler macros to direct input to member
56functions that take a wxMouseEvent argument.
57
58\twocolwidtha{7cm}
59\begin{twocollist}\itemsep=0pt
58dee211
VZ
60\twocolitem{{\bf EVT\_LEFT\_DOWN(func)}}{Process a wxEVT\_LEFT\_DOWN event. The
61handler of this event should normally call \helpref{event.Skip()}{wxeventskip} to
62allow the default processing to take place as otherwise the window under mouse
63wouldn't get the focus.}
a660d684
KB
64\twocolitem{{\bf EVT\_LEFT\_UP(func)}}{Process a wxEVT\_LEFT\_UP event.}
65\twocolitem{{\bf EVT\_LEFT\_DCLICK(func)}}{Process a wxEVT\_LEFT\_DCLICK event.}
66\twocolitem{{\bf EVT\_MIDDLE\_DOWN(func)}}{Process a wxEVT\_MIDDLE\_DOWN event.}
67\twocolitem{{\bf EVT\_MIDDLE\_UP(func)}}{Process a wxEVT\_MIDDLE\_UP event.}
68\twocolitem{{\bf EVT\_MIDDLE\_DCLICK(func)}}{Process a wxEVT\_MIDDLE\_DCLICK event.}
69\twocolitem{{\bf EVT\_RIGHT\_DOWN(func)}}{Process a wxEVT\_RIGHT\_DOWN event.}
70\twocolitem{{\bf EVT\_RIGHT\_UP(func)}}{Process a wxEVT\_RIGHT\_UP event.}
71\twocolitem{{\bf EVT\_RIGHT\_DCLICK(func)}}{Process a wxEVT\_RIGHT\_DCLICK event.}
01101e2d
VZ
72\twocolitem{{\bf EVT\_MOUSE\_AUX1\_DOWN(func)}}{Process a wxEVT\_MOUSE\_AUX1\_DOWN event.}
73\twocolitem{{\bf EVT\_MOUSE\_AUX1\_UP(func)}}{Process a wxEVT\_MOUSE\_AUX1\_UP event.}
74\twocolitem{{\bf EVT\_MOUSE\_AUX1\_DCLICK(func)}}{Process a wxEVT\_MOUSE\_AUX1\_DCLICK event.}
75\twocolitem{{\bf EVT\_MOUSE\_AUX2\_DOWN(func)}}{Process a wxEVT\_MOUSE\_AUX2\_DOWN event.}
76\twocolitem{{\bf EVT\_MOUSE\_AUX2\_UP(func)}}{Process a wxEVT\_MOUSE\_AUX2\_UP event.}
77\twocolitem{{\bf EVT\_MOUSE\_AUX2\_DCLICK(func)}}{Process a wxEVT\_MOUSE\_AUX2\_DCLICK event.}
a660d684
KB
78\twocolitem{{\bf EVT\_MOTION(func)}}{Process a wxEVT\_MOTION event.}
79\twocolitem{{\bf EVT\_ENTER\_WINDOW(func)}}{Process a wxEVT\_ENTER\_WINDOW event.}
80\twocolitem{{\bf EVT\_LEAVE\_WINDOW(func)}}{Process a wxEVT\_LEAVE\_WINDOW event.}
d2c52078 81\twocolitem{{\bf EVT\_MOUSEWHEEL(func)}}{Process a wxEVT\_MOUSEWHEEL event.}
5de76427 82\twocolitem{{\bf EVT\_MOUSE\_EVENTS(func)}}{Process all mouse events.}
a660d684
KB
83\end{twocollist}%
84
85\latexignore{\rtfignore{\wxheading{Members}}}
86
6f63704f 87
3e79fa75 88\membersection{wxMouseEvent::m\_altDown}\label{wxmouseeventmaltdown}
a660d684
KB
89
90\member{bool}{m\_altDown}
91
cc81d32f 92true if the Alt key is pressed down.
a660d684 93
6f63704f 94
3e79fa75 95\membersection{wxMouseEvent::m\_controlDown}\label{wxmouseeventmcontroldown}
a660d684
KB
96
97\member{bool}{m\_controlDown}
98
cc81d32f 99true if control key is pressed down.
a660d684 100
6f63704f 101
3e79fa75 102\membersection{wxMouseEvent::m\_leftDown}\label{wxmouseeventmleftdown}
a660d684
KB
103
104\member{bool}{m\_leftDown}
105
cc81d32f 106true if the left mouse button is currently pressed down.
a660d684 107
6f63704f 108
3e79fa75 109\membersection{wxMouseEvent::m\_middleDown}\label{wxmouseeventmmiddledown}
a660d684
KB
110
111\member{bool}{m\_middleDown}
112
cc81d32f 113true if the middle mouse button is currently pressed down.
a660d684 114
6f63704f 115
3e79fa75 116\membersection{wxMouseEvent::m\_rightDown}\label{wxmouseeventmrightdown}
a660d684
KB
117
118\member{bool}{m\_rightDown}
119
cc81d32f 120true if the right mouse button is currently pressed down.
a660d684 121
6f63704f 122
3e79fa75 123\membersection{wxMouseEvent::m\_metaDown}\label{wxmouseeventmmetadown}
a660d684
KB
124
125\member{bool}{m\_metaDown}
126
cc81d32f 127true if the Meta key is pressed down.
a660d684 128
6f63704f 129
3e79fa75 130\membersection{wxMouseEvent::m\_shiftDown}\label{wxmouseeventmshiftdown}
a660d684
KB
131
132\member{bool}{m\_shiftDown}
133
cc81d32f 134true if shift is pressed down.
a660d684 135
6f63704f 136
3e79fa75 137\membersection{wxMouseEvent::m\_x}\label{wxmouseeventmx}
a660d684 138
803ef874 139\member{long}{m\_x}
a660d684
KB
140
141X-coordinate of the event.
142
6f63704f 143
3e79fa75 144\membersection{wxMouseEvent::m\_y}\label{wxmouseeventmy}
a660d684 145
803ef874 146\member{long}{m\_y}
a660d684
KB
147
148Y-coordinate of the event.
149
6f63704f 150
3e79fa75 151\membersection{wxMouseEvent::m\_wheelRotation}\label{wxmouseeventmwheelrotation}
d2c52078
RD
152
153\member{int}{m\_wheelRotation}
154
155The distance the mouse wheel is rotated.
156
6f63704f 157
3e79fa75 158\membersection{wxMouseEvent::m\_wheelDelta}\label{wxmouseeventmwheeldelta}
d2c52078
RD
159
160\member{int}{m\_wheelDelta}
161
8e7cd32b 162The wheel delta, normally $120$.
d2c52078 163
6f63704f 164
3e79fa75 165\membersection{wxMouseEvent::m\_linesPerAction}\label{wxmouseeventmlinesperaction}
d2c52078
RD
166
167\member{int}{m\_linesPerAction}
168
169The configured number of lines (or whatever) to be scrolled per wheel
170action.
171
172
6f63704f 173
3e79fa75 174\membersection{wxMouseEvent::wxMouseEvent}\label{wxmouseeventctor}
a660d684 175
f6e9a818 176\func{}{wxMouseEvent}{\param{WXTYPE}{ mouseEventType = 0}}
a660d684
KB
177
178Constructor. Valid event types are:
179
180\begin{itemize}
181\itemsep=0pt
182\item {\bf wxEVT\_ENTER\_WINDOW}
183\item {\bf wxEVT\_LEAVE\_WINDOW}
184\item {\bf wxEVT\_LEFT\_DOWN}
185\item {\bf wxEVT\_LEFT\_UP}
186\item {\bf wxEVT\_LEFT\_DCLICK}
187\item {\bf wxEVT\_MIDDLE\_DOWN}
188\item {\bf wxEVT\_MIDDLE\_UP}
189\item {\bf wxEVT\_MIDDLE\_DCLICK}
190\item {\bf wxEVT\_RIGHT\_DOWN}
191\item {\bf wxEVT\_RIGHT\_UP}
192\item {\bf wxEVT\_RIGHT\_DCLICK}
01101e2d
VZ
193\item {\bf wxEVT\_MOUSE\_AUX1\_DOWN}
194\item {\bf wxEVT\_MOUSE\_AUX1\_UP}
195\item {\bf wxEVT\_MOUSE\_AUX1\_DCLICK}
196\item {\bf wxEVT\_MOUSE\_AUX2\_DOWN}
197\item {\bf wxEVT\_MOUSE\_AUX2\_UP}
198\item {\bf wxEVT\_MOUSE\_AUX2\_DCLICK}
a660d684 199\item {\bf wxEVT\_MOTION}
d2c52078 200\item {\bf wxEVT\_MOUSEWHEEL}
a660d684
KB
201\end{itemize}
202
6f63704f 203
3e79fa75 204\membersection{wxMouseEvent::AltDown}\label{wxmouseeventaltdown}
a660d684
KB
205
206\func{bool}{AltDown}{\void}
207
cc81d32f 208Returns true if the Alt key was down at the time of the event.
a660d684 209
6f63704f 210
01101e2d
VZ
211\membersection{wxMouseEvent::Aux1DClick}\label{wxmouseeventaux1dclick}
212
213\constfunc{bool}{Aux1DClick}{\void}
214
215Returns true if the event was a first extra button double click.
216
217
218\membersection{wxMouseEvent::Aux1Down}\label{wxmouseeventaux1down}
219
220\constfunc{bool}{Aux1Down}{\void}
221
222Returns true if the first extra button mouse button changed to down.
223
224
225\membersection{wxMouseEvent::Aux1IsDown}\label{wxmouseeventaux1isdown}
226
227\constfunc{bool}{Aux1IsDown}{\void}
228
229Returns true if the first extra button mouse button is currently down, independent
230of the current event type.
231
232
233\membersection{wxMouseEvent::Aux1Up}\label{wxmouseeventaux1up}
234
235\constfunc{bool}{Aux1Up}{\void}
236
237Returns true if the first extra button mouse button changed to up.
238
239
240\membersection{wxMouseEvent::Aux2DClick}\label{wxmouseeventaux2dclick}
241
242\constfunc{bool}{Aux2DClick}{\void}
243
244Returns true if the event was a second extra button double click.
245
246
247\membersection{wxMouseEvent::Aux2Down}\label{wxmouseeventaux2down}
248
249\constfunc{bool}{Aux2Down}{\void}
250
251Returns true if the second extra button mouse button changed to down.
252
253
254\membersection{wxMouseEvent::Aux2IsDown}\label{wxmouseeventaux2isdown}
255
256\constfunc{bool}{Aux2IsDown}{\void}
257
258Returns true if the second extra button mouse button is currently down, independent
259of the current event type.
260
261
262\membersection{wxMouseEvent::Aux2Up}\label{wxmouseeventaux2up}
263
264\constfunc{bool}{Aux2Up}{\void}
265
266Returns true if the second extra button mouse button changed to up.
267
268
8e7cd32b 269\membersection{wxMouseEvent::Button}\label{wxmouseeventbutton}
a660d684
KB
270
271\func{bool}{Button}{\param{int}{ button}}
272
cc81d32f 273Returns true if the identified mouse button is changing state. Valid
8e7cd32b 274values of {\it button} are:
a660d684 275
8e7cd32b 276\begin{twocollist}\itemsep=0pt
91fd135b 277\twocolitem{{\tt wxMOUSE\_BTN\_LEFT}}{check if left button was pressed}
dbd94b75
KH
278\twocolitem{{\tt wxMOUSE\_BTN\_MIDDLE}}{check if middle button was pressed}
279\twocolitem{{\tt wxMOUSE\_BTN\_RIGHT}}{check if right button was pressed}
01101e2d
VZ
280\twocolitem{{\tt wxMOUSE\_BTN\_AUX1}}{check if the first extra button was pressed}
281\twocolitem{{\tt wxMOUSE\_BTN\_AUX2}}{check if the second extra button was pressed}
91fd135b 282\twocolitem{{\tt wxMOUSE\_BTN\_ANY}}{check if any button was pressed}
8e7cd32b
VZ
283\end{twocollist}
284
6f63704f 285
3e79fa75 286\membersection{wxMouseEvent::ButtonDClick}\label{wxmouseeventbuttondclick}
a660d684 287
8e7cd32b 288\func{bool}{ButtonDClick}{\param{int}{ but = wxMOUSE\_BTN\_ANY}}
a660d684 289
cc81d32f 290If the argument is omitted, this returns true if the event was a mouse
a660d684 291double click event. Otherwise the argument specifies which double click event
8e7cd32b
VZ
292was generated (see \helpref{Button}{wxmouseeventbutton} for the possible
293values).
a660d684 294
6f63704f 295
3e79fa75 296\membersection{wxMouseEvent::ButtonDown}\label{wxmouseeventbuttondown}
a660d684
KB
297
298\func{bool}{ButtonDown}{\param{int}{ but = -1}}
299
cc81d32f 300If the argument is omitted, this returns true if the event was a mouse
a660d684 301button down event. Otherwise the argument specifies which button-down event
8e7cd32b
VZ
302was generated (see \helpref{Button}{wxmouseeventbutton} for the possible
303values).
304
a660d684 305
6f63704f 306
3e79fa75 307\membersection{wxMouseEvent::ButtonUp}\label{wxmouseeventbuttonup}
a660d684
KB
308
309\func{bool}{ButtonUp}{\param{int}{ but = -1}}
310
cc81d32f 311If the argument is omitted, this returns true if the event was a mouse
a660d684 312button up event. Otherwise the argument specifies which button-up event
8e7cd32b
VZ
313was generated (see \helpref{Button}{wxmouseeventbutton} for the possible
314values).
315
a660d684 316
6f63704f 317
9cc73180 318\membersection{wxMouseEvent::CmdDown}\label{wxmouseeventcmddown}
a2bd1520
VZ
319
320\constfunc{bool}{CmdDown}{\void}
321
322Same as \helpref{MetaDown}{wxmouseeventmetadown} under Mac, same as
323\helpref{ControlDown}{wxmouseeventcontroldown} elsewhere.
324
325\wxheading{See also}
326
dc66ae68 327\helpref{wxKeyEvent::CmdDown}{wxkeyeventcmddown}
a2bd1520
VZ
328
329
330\membersection{wxMouseEvent::ControlDown}\label{wxmouseeventcontroldown}
a660d684
KB
331
332\func{bool}{ControlDown}{\void}
333
cc81d32f 334Returns true if the control key was down at the time of the event.
a660d684 335
6f63704f 336
100cf085 337\membersection{wxMouseEvent::Dragging}\label{wxmouseeventdragging}
a660d684
KB
338
339\func{bool}{Dragging}{\void}
340
cc81d32f 341Returns true if this was a dragging event (motion while a button is depressed).
a660d684 342
100cf085
VZ
343\wxheading{See also}
344
345\helpref{Moving}{wxmouseeventmoving}
346
6f63704f 347
a660d684
KB
348\membersection{wxMouseEvent::Entering}\label{wxmouseevententering}
349
350\func{bool}{Entering}{\void}
351
cc81d32f 352Returns true if the mouse was entering the window.
a660d684
KB
353
354See also \helpref{wxMouseEvent::Leaving}{wxmouseeventleaving}.
355
6f63704f 356
ec760ec9
VZ
357\membersection{wxMouseEvent::GetButton}\label{wxmouseeventgetbutton}
358
359\constfunc{int}{GetButton}{\void}
360
8e7cd32b
VZ
361Returns the mouse button which generated this event or {\tt wxMOUSE\_BTN\_NONE}
362if no button is involved (for mouse move, enter or leave event, for example).
363Otherwise {\tt wxMOUSE\_BTN\_LEFT} is returned for the left button down, up and
364double click events, {\tt wxMOUSE\_BTN\_MIDDLE} and {\tt wxMOUSE\_BTN\_RIGHT}
365for the same events for the middle and the right buttons respectively.
ec760ec9 366
6f63704f 367
803ef874
JS
368\membersection{wxMouseEvent::GetPosition}\label{wxmouseeventgetposition}
369
370\constfunc{wxPoint}{GetPosition}{\void}
371
fa482912
JS
372\constfunc{void}{GetPosition}{\param{wxCoord*}{ x}, \param{wxCoord*}{ y}}
373
374\constfunc{void}{GetPosition}{\param{long*}{ x}, \param{long*}{ y}}
803ef874
JS
375
376Sets *x and *y to the position at which the event occurred.
377
378Returns the physical mouse position in pixels.
379
ae177b45
VZ
380Note that if the mouse event has been artificially generated from a special
381keyboard combination (e.g. under Windows when the ``menu'' key is pressed), the
382returned position is \texttt{wxDefaultPosition}.
383
6f63704f 384
803ef874
JS
385\membersection{wxMouseEvent::GetLogicalPosition}\label{wxmouseeventgetlogicalposition}
386
387\constfunc{wxPoint}{GetLogicalPosition}{\param{const wxDC\&}{ dc}}
388
389Returns the logical mouse position in pixels (i.e. translated according to the
390translation set for the DC, which usually indicates that the window has been scrolled).
391
d2c52078 392
6f63704f 393
d2c52078
RD
394\membersection{wxMouseEvent::GetLinesPerAction}\label{wxmouseeventgetlinesperaction}
395
396\constfunc{int}{GetLinesPerAction}{\void}
397
398Returns the configured number of lines (or whatever) to be scrolled per
d13d99aa 399wheel action. Defaults to three.
d2c52078 400
6f63704f 401
d2c52078
RD
402\membersection{wxMouseEvent::GetWheelRotation}\label{wxmouseeventgetwheelrotation}
403
404\constfunc{int}{GetWheelRotation}{\void}
405
406Get wheel rotation, positive or negative indicates direction of
9aeb24a0
VZ
407rotation. Current devices all send an event when rotation is at least
408+/-WheelDelta, but finer resolution devices can be created in the future.
409Because of this you shouldn't assume that one event is equal to 1 line, but you
410should be able to either do partial line scrolling or wait until several
411events accumulate before scrolling.
d2c52078 412
6f63704f 413
d2c52078
RD
414\membersection{wxMouseEvent::GetWheelDelta}\label{wxmouseeventgetwheeldelta}
415
416\constfunc{int}{GetWheelDelta}{\void}
417
8e7cd32b 418Get wheel delta, normally $120$. This is the threshold for action to be
d2c52078
RD
419taken, and one such action (for example, scrolling one increment)
420should occur for each delta.
421
6f63704f 422
a660d684
KB
423\membersection{wxMouseEvent::GetX}\label{wxmouseeventgetx}
424
803ef874 425\constfunc{long}{GetX}{\void}
a660d684 426
803ef874 427Returns X coordinate of the physical mouse event position.
a660d684 428
6f63704f 429
a660d684
KB
430\membersection{wxMouseEvent::GetY}\label{wxmouseeventgety}
431
803ef874 432\func{long}{GetY}{\void}
a660d684 433
803ef874 434Returns Y coordinate of the physical mouse event position.
a660d684 435
6f63704f 436
3e79fa75 437\membersection{wxMouseEvent::IsButton}\label{wxmouseeventisbutton}
a660d684 438
803ef874 439\constfunc{bool}{IsButton}{\void}
a660d684 440
cc81d32f 441Returns true if the event was a mouse button event (not necessarily a button down event -
a660d684
KB
442that may be tested using {\it ButtonDown}).
443
6f63704f 444
3e79fa75 445\membersection{wxMouseEvent::IsPageScroll}\label{wxmouseeventispagescroll}
9b9337da
RD
446
447\constfunc{bool}{IsPageScroll}{\void}
448
cc81d32f 449Returns true if the system has been setup to do page scrolling with
9b9337da
RD
450the mouse wheel instead of line scrolling.
451
6f63704f 452
a660d684
KB
453\membersection{wxMouseEvent::Leaving}\label{wxmouseeventleaving}
454
803ef874 455\constfunc{bool}{Leaving}{\void}
a660d684 456
cc81d32f 457Returns true if the mouse was leaving the window.
a660d684
KB
458
459See also \helpref{wxMouseEvent::Entering}{wxmouseevententering}.
460
6f63704f 461
3e79fa75 462\membersection{wxMouseEvent::LeftDClick}\label{wxmouseeventleftdclick}
a660d684 463
803ef874 464\constfunc{bool}{LeftDClick}{\void}
a660d684 465
cc81d32f 466Returns true if the event was a left double click.
a660d684 467
6f63704f 468
2cdd0d01 469\membersection{wxMouseEvent::LeftDown}\label{wxmouseeventleftdown}
a660d684 470
803ef874 471\constfunc{bool}{LeftDown}{\void}
a660d684 472
cc81d32f 473Returns true if the left mouse button changed to down.
a660d684 474
6f63704f 475
f6bcfd97 476\membersection{wxMouseEvent::LeftIsDown}\label{wxmouseeventleftisdown}
a660d684 477
803ef874 478\constfunc{bool}{LeftIsDown}{\void}
a660d684 479
cc81d32f 480Returns true if the left mouse button is currently down, independent
a660d684
KB
481of the current event type.
482
7430e321
VZ
483Please notice that it is \emph{not} the same as
484\helpref{LeftDown}{wxmouseeventleftdown} which returns \true if the event was
485generated by the left mouse button being pressed. Rather, it simply describes
dad0c6d3
VZ
486the state of the left mouse button at the time when the event was generated
487(so while it will be true for a left click event, it can also be true for
488a right click if it happened while the left mouse button was pressed).
2cdd0d01
VZ
489
490This event is usually used in the mouse event handlers which process "move
491mouse" messages to determine whether the user is (still) dragging the mouse.
492
6f63704f 493
3e79fa75 494\membersection{wxMouseEvent::LeftUp}\label{wxmouseeventleftup}
a660d684 495
803ef874 496\constfunc{bool}{LeftUp}{\void}
a660d684 497
cc81d32f 498Returns true if the left mouse button changed to up.
a660d684 499
6f63704f 500
a2bd1520 501\membersection{wxMouseEvent::MetaDown}\label{wxmouseeventmetadown}
a660d684 502
803ef874 503\constfunc{bool}{MetaDown}{\void}
a660d684 504
cc81d32f 505Returns true if the Meta key was down at the time of the event.
a660d684 506
6f63704f 507
3e79fa75 508\membersection{wxMouseEvent::MiddleDClick}\label{wxmouseeventmiddledclick}
a660d684 509
803ef874 510\constfunc{bool}{MiddleDClick}{\void}
a660d684 511
cc81d32f 512Returns true if the event was a middle double click.
a660d684 513
6f63704f 514
3e79fa75 515\membersection{wxMouseEvent::MiddleDown}\label{wxmouseeventmiddledown}
a660d684 516
803ef874 517\constfunc{bool}{MiddleDown}{\void}
a660d684 518
cc81d32f 519Returns true if the middle mouse button changed to down.
a660d684 520
6f63704f 521
f6bcfd97 522\membersection{wxMouseEvent::MiddleIsDown}\label{wxmouseeventmiddleisdown}
a660d684 523
803ef874 524\constfunc{bool}{MiddleIsDown}{\void}
a660d684 525
cc81d32f 526Returns true if the middle mouse button is currently down, independent
a660d684
KB
527of the current event type.
528
6f63704f 529
3e79fa75 530\membersection{wxMouseEvent::MiddleUp}\label{wxmouseeventmiddleup}
a660d684 531
803ef874 532\constfunc{bool}{MiddleUp}{\void}
a660d684 533
cc81d32f 534Returns true if the middle mouse button changed to up.
a660d684 535
6f63704f 536
100cf085 537\membersection{wxMouseEvent::Moving}\label{wxmouseeventmoving}
a660d684 538
803ef874 539\constfunc{bool}{Moving}{\void}
a660d684 540
6f63704f
VZ
541Returns true if this was a motion event and no mouse buttons were pressed.
542If any mouse button is held pressed, then this method returns \false and
543\helpref{Dragging}{wxmouseeventdragging} returns \true.
544
a660d684 545
3e79fa75 546\membersection{wxMouseEvent::RightDClick}\label{wxmouseeventrightdclick}
a660d684 547
803ef874 548\constfunc{bool}{RightDClick}{\void}
a660d684 549
cc81d32f 550Returns true if the event was a right double click.
a660d684 551
6f63704f 552
3e79fa75 553\membersection{wxMouseEvent::RightDown}\label{wxmouseeventrightdown}
a660d684 554
803ef874 555\constfunc{bool}{RightDown}{\void}
a660d684 556
cc81d32f 557Returns true if the right mouse button changed to down.
a660d684 558
6f63704f 559
f6bcfd97 560\membersection{wxMouseEvent::RightIsDown}\label{wxmouseeventrightisdown}
a660d684 561
803ef874 562\constfunc{bool}{RightIsDown}{\void}
a660d684 563
cc81d32f 564Returns true if the right mouse button is currently down, independent
a660d684
KB
565of the current event type.
566
6f63704f 567
3e79fa75 568\membersection{wxMouseEvent::RightUp}\label{wxmouseeventrightup}
a660d684 569
803ef874 570\constfunc{bool}{RightUp}{\void}
a660d684 571
cc81d32f 572Returns true if the right mouse button changed to up.
a660d684 573
6f63704f 574
3e79fa75 575\membersection{wxMouseEvent::ShiftDown}\label{wxmouseeventshiftdown}
a660d684 576
803ef874 577\constfunc{bool}{ShiftDown}{\void}
a660d684 578
cc81d32f 579Returns true if the shift key was down at the time of the event.
a660d684 580