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