Class MouseEvent
Mouse event
Constructors
Name | Description |
this
(a, b, mouseMods, keyMods, x, y)
|
Construct mouse event from data
|
this
(e)
|
Copy constructor
|
Properties
Type | Name | Description |
|
action [get]
|
Action - buttonDown , move , etc.
|
|
button [get]
|
Button which caused buttonDown or buttonUp action
|
|
buttonDetails [get]
|
Button state details for event's button
|
bool
|
doNotTrackButtonDown [get, set]
|
Mouse button tracking flag
|
bool
|
isDoubleClick [get]
|
Returns true for buttonDown event when button is pressed second time in short interval after pressing first time
|
bool
|
isTripleClick [get]
|
Returns true for buttonDown event when button is pressed third time in short interval after pressing first time
|
|
keyMods [get]
|
Keyboard modifiers (only common, i.e. not distinguishing left and right)
|
|
lbutton [get]
|
Left button state details
|
|
mbutton [get]
|
Middle button state details
|
|
mouseMods [get]
|
Mouse buttons, pressed during this event
|
bool
|
noKeyMods [get]
|
True if has no keyboard modifiers pressed
|
bool
|
noMouseMods [get]
|
True if has no mouse buttons pressed during the event
|
|
pos [get]
|
Returns point for mouse cursor position
|
|
rbutton [get]
|
Right button state details
|
WeakRef!(beamui.widgets.widget.Element)
|
trackingWidget [get]
|
Get event tracking widget to override
|
short
|
x [get]
|
x coordinate of mouse pointer (relative to window client area)
|
short
|
y [get]
|
y coordinate of mouse pointer (relative to window client area)
|
Methods
Name | Description |
alteredBy
(mod)
|
Check whether all of mod keyboard modifiers are applied during this event
|
alteredByButton
(btn)
|
Check whether the mouse button is pressed during this event
|
changeAction
(a)
|
Override action code (for usage from platform code)
|
toString
()
|
|
track
(w)
|
Override mouse tracking widget
|