1.36 <GdkScrollEvent>

Class: <GdkScrollEvent>

It derives from <GdkEvent>.

An event related to a scrolling motion.

Procedures

Method: scroll-event:get-deltas self ⇒ delta-x delta-y
Method: get-deltas self ⇒ delta-x delta-y

Extracts the scroll deltas of a scroll event.

The deltas will be zero unless the scroll direction is smooth.

For the representation unit of these deltas, see scroll-event:get-unit.

self

Passed: a <GdkScrollEvent>.

a scroll event

delta-x

Returned: a real number.

return location for x scroll delta

delta-y

Returned: a real number.

return location for y scroll delta

Method: scroll-event:get-direction self ⇒ %return
Method: get-direction self ⇒ %return

Extracts the direction of a scroll event.

self

Passed: a <GdkScrollEvent>.

a scroll event

%return

Returned: a <GdkScrollDirection>.

the scroll direction of self

Method: scroll-event:get-relative-direction self ⇒ %return
Method: get-relative-direction self ⇒ %return

Extracts the scroll direction relative to the physical motion.

self

Passed: a <GdkScrollEvent>.

a relative scroll direction.

%return

Returned: a <GdkScrollRelativeDirection>.

the relative scroll direction.

Method: scroll-event:get-unit self ⇒ %return
Method: get-unit self ⇒ %return

Extracts the scroll delta unit of a scroll event.

The unit will always be wheel if the scroll direction is not smooth.

self

Passed: a <GdkScrollEvent>.

a scroll event.

%return

Returned: a <GdkScrollUnit>.

the scroll unit.

Method: scroll-event:is-stop? self ⇒ %return
Method: is-stop? self ⇒ %return

Check whether a scroll event is a stop scroll event.

Scroll sequences with smooth scroll information may provide a stop scroll event once the interaction with the device finishes, e.g. by lifting a finger. This stop scroll event is the signal that a widget may trigger kinetic scrolling based on the current velocity.

Stop scroll events always have a delta of 0/0.

self

Passed: a <GdkScrollEvent>.

a scroll event

%return

Returned: a boolean.

#t if the event is a scroll stop event