Skip to content

abstract struct SF::Event::MouseWheelScrollEvent
inherits SF::Event #

Mouse wheel events parameters (MouseWheelScrolled)

Direct known subclasses

SF::Event::MouseWheelScrolled

Class methods#

.new #

View source

Methods#

#delta : Float32 #

Wheel offset (positive is up/left, negative is down/right). High-precision mice may use non-integral offsets.

View source

#delta=(delta : Number) #

View source

#dup : MouseWheelScrollEvent #

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.

View source

#wheel : Mouse::Wheel #

Which wheel (for mice with multiple ones)

View source

#wheel=(wheel : Mouse::Wheel) #

View source

#x : Int32 #

X position of the mouse pointer, relative to the left of the owner window

View source

#x=(x : Int) #

View source

#y : Int32 #

Y position of the mouse pointer, relative to the top of the owner window

View source

#y=(y : Int) #

View source