struct Lime::Modules::Mouse::Event
- Lime::Modules::Mouse::Event
- Struct
- Value
- Object
Overview
A mouse event.
Defined in:
lime/modules.crConstructors
Instance Method Summary
- #clone
- #copy_with(x _x = @x, y _y = @y, type _type = @type)
-
#kind : Symbol
Returns the kind of mouse event based on
#type
: -
#type : Symbol
:release
if a mouse button has been released.
- #x : Int32
- #y : Int32
Constructor Detail
Instance Method Detail
def kind : Symbol
#
Returns the kind of mouse event based on #type
:
:release
if a mouse button has been released.:click
if a mouse button has been pressed.:wheel
if the wheel has been scrolled.:drag
ifmode
isMode::Drag
orMode::All
and a mouse button has been pressed and the mouse has been moved.:move
ifmode
isMode::All
and the mouse has been moved.
def type : Symbol
#
-
:release
if a mouse button has been released. -
:left
if the left mouse button has been pressed. -
:wheel
if the mouse wheel button has been pressed. -
:right
if the right mouse button has been pressed. -
:wheel_up
if the mouse wheel has been scrolled up. -
:wheel_down
if the mouse wheel has been scrolled down.
Only if mode
is Mode::Drag
or Mode::All
:
:left_drag
if the left mouse button has been pressed and the mouse has been moved.:wheel_drag
if the mouse wheel button has been pressed and the mouse has been moved.:right_drag
if the right mouse button has been pressed and the mouse has been moved.
Only if mode
is Mode::All
:
:move
if the mouse has been moved.