altDown(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the Alt key is pressed.
Notice that wxKeyEvent:getModifiers/1 should usually be used instead of this one.
button(This,But)->boolean()
Types:
This = wxMouseEvent()
But = wx:wx_enum()
Returns true if the event was generated by the specified button.
See: wxMouseState::ButtoinIsDown()
buttonDClick(This)->boolean()
Types:
This = wxMouseEvent()
buttonDClick(This,Options::[Option])->boolean()
Types:
This = wxMouseEvent()
Option = {but, wx:wx_enum()}
If the argument is omitted, this returns true if the event was a mouse double click event.
Otherwise the argument specifies which double click event was generated (see button/2 for the
possible values).
buttonDown(This)->boolean()
Types:
This = wxMouseEvent()
buttonDown(This,Options::[Option])->boolean()
Types:
This = wxMouseEvent()
Option = {but, wx:wx_enum()}
If the argument is omitted, this returns true if the event was a mouse button down event.
Otherwise the argument specifies which button-down event was generated (see button/2 for the
possible values).
buttonUp(This)->boolean()
Types:
This = wxMouseEvent()
buttonUp(This,Options::[Option])->boolean()
Types:
This = wxMouseEvent()
Option = {but, wx:wx_enum()}
If the argument is omitted, this returns true if the event was a mouse button up event.
Otherwise the argument specifies which button-up event was generated (see button/2 for the
possible values).
cmdDown(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the key used for command accelerators is pressed.
Same as controlDown/1. Deprecated.
Notice that wxKeyEvent:getModifiers/1 should usually be used instead of this one.
controlDown(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the Control key or Apple/Command key under macOS is pressed.
This function doesn't distinguish between right and left control keys.
Notice that wxKeyEvent:getModifiers/1 should usually be used instead of this one.
dragging(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if this was a dragging event (motion while a button is depressed).
See: moving/1entering(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the mouse was entering the window.
See: leaving/1getButton(This)->integer()
Types:
This = wxMouseEvent()
Returns the mouse button which generated this event or wxMOUSE_BTN_NONE if no button is involved
(for mouse move, enter or leave event, for example).
Otherwise wxMOUSE_BTN_LEFT is returned for the left button down, up and double click events,
wxMOUSE_BTN_MIDDLE and wxMOUSE_BTN_RIGHT for the same events for the middle and the right buttons
respectively.
getPosition(This)->{X::integer(),Y::integer()}
Types:
This = wxMouseEvent()
Returns the physical mouse position.
getLogicalPosition(This,Dc)->{X::integer(),Y::integer()}
Types:
This = wxMouseEvent()
Dc = wxDC:wxDC()
Returns the logical mouse position in pixels (i.e. translated according to the translation set for
the DC, which usually indicates that the window has been scrolled).
getLinesPerAction(This)->integer()
Types:
This = wxMouseEvent()
Returns the configured number of lines (or whatever) to be scrolled per wheel action.
Default value under most platforms is three.
See: GetColumnsPerAction() (not implemented in wx)
getWheelRotation(This)->integer()
Types:
This = wxMouseEvent()
Get wheel rotation, positive or negative indicates direction of rotation.
Current devices all send an event when rotation is at least +/-WheelDelta, but finer resolution
devices can be created in the future.
Because of this you shouldn't assume that one event is equal to 1 line, but you should be able to
either do partial line scrolling or wait until several events accumulate before scrolling.
getWheelDelta(This)->integer()
Types:
This = wxMouseEvent()
Get wheel delta, normally 120.
This is the threshold for action to be taken, and one such action (for example, scrolling one
increment) should occur for each delta.
getX(This)->integer()
Types:
This = wxMouseEvent()
Returns X coordinate of the physical mouse event position.
getY(This)->integer()
Types:
This = wxMouseEvent()
Returns Y coordinate of the physical mouse event position.
isButton(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the event was a mouse button event (not necessarily a button down event - that may
be tested using buttonDown/2).
isPageScroll(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the system has been setup to do page scrolling with the mouse wheel instead of
line scrolling.
leaving(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the mouse was leaving the window.
See: entering/1leftDClick(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the event was a left double click.
leftDown(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the left mouse button changed to down.
leftIsDown(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the left mouse button is currently down.
leftUp(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the left mouse button changed to up.
metaDown(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the Meta key was down at the time of the event.
middleDClick(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the event was a middle double click.
middleDown(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the middle mouse button changed to down.
middleIsDown(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the middle mouse button is currently down.
middleUp(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the middle mouse button changed to up.
moving(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if this was a motion event and no mouse buttons were pressed.
If any mouse button is held pressed, then this method returns false and dragging/1 returns true.
rightDClick(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the event was a right double click.
rightDown(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the right mouse button changed to down.
rightIsDown(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the right mouse button is currently down.
rightUp(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the right mouse button changed to up.
shiftDown(This)->boolean()
Types:
This = wxMouseEvent()
Returns true if the Shift key is pressed.
This function doesn't distinguish between right and left shift keys.
Notice that wxKeyEvent:getModifiers/1 should usually be used instead of this one.
getWheelAxis(This)->wx:wx_enum()
Types:
This = wxMouseEvent()
Gets the axis the wheel operation concerns.
Usually the mouse wheel is used to scroll vertically so wxMOUSE_WHEEL_VERTICAL is returned but
some mice (and most trackpads) also allow to use the wheel to scroll horizontally in which case
wxMOUSE_WHEEL_HORIZONTAL is returned.
Notice that before wxWidgets 2.9.4 this method returned int.
wxWidgets team. wx 2.1.1 wxMouseEvent(3erl)