abstract struct SF::Event::MouseWheelEvent

Overview

Mouse wheel events parameters (see MouseWheelMoved)

DEPRECATED This event is deprecated and potentially inaccurate. Use MouseWheelScrollEvent instead.

Direct Known Subclasses

Defined in:

window/obj.cr

Constructors

Instance Method Summary

Instance methods inherited from struct SF::Event

initialize initialize

Constructor methods inherited from struct SF::Event

new new

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def delta : Int32 #

Number of ticks the wheel has moved (positive is up, negative is down)


[View source]
def delta=(delta : Int) #

[View source]
def dup : MouseWheelEvent #
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.


[View source]
def x : Int32 #

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


[View source]
def x=(x : Int) #

[View source]
def y : Int32 #

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


[View source]
def y=(y : Int) #

[View source]