abstract struct SF::Event::MouseWheelScrollEvent
- SF::Event::MouseWheelScrollEvent
- SF::Event
- Struct
- Value
- Object
Overview
Mouse wheel events parameters (see MouseWheelScrolled
)
Direct Known Subclasses
Defined in:
window/obj.crConstructors
Instance Method Summary
-
#delta : Float32
Wheel offset (positive is up/left, negative is down/right).
- #delta=(delta : Number)
-
#dup : MouseWheelScrollEvent
Returns a shallow copy of this object.
-
#wheel : Mouse::Wheel
Which wheel (for mice with multiple ones)
- #wheel=(wheel : Mouse::Wheel)
-
#x : Int32
X position of the mouse pointer, relative to the left of the owner window
- #x=(x : Int)
-
#y : Int32
Y position of the mouse pointer, relative to the top of the owner window
- #y=(y : Int)
Instance methods inherited from struct SF::Event
initialize
initialize
Constructor methods inherited from struct SF::Event
new
new
Constructor Detail
Instance Method Detail
def delta : Float32
#
Wheel offset (positive is up/left, negative is down/right). High-precision mice may use non-integral offsets.
def dup : MouseWheelScrollEvent
#
Description copied from struct Value
Returns a shallow copy of this object.
Because Value
is a value type, this method returns self
,
which already involves a shallow copy of this object because
value types are passed by value.