|
superclass: event% |
See get-event-type for a list of the scroll event types.
constructor
(new scroll-event% [ [event-type event-type] [direction direction] [position position] [time-stamp time-stamp]]) → (is-a?/c scroll-event%)
event-type :
(or/c 'top 'bottom 'line-up 'line-down 'page-up 'page-down 'thumb) = 'thumb direction : (or/c 'horizontal 'vertical) = 'vertical position : dimension-integer? = 0 time-stamp : exact-integer? = 0
method
(send a-scroll-event get-direction)
→ (or/c 'horizontal 'vertical)
method
(send a-scroll-event get-event-type)
→
(or/c 'top 'bottom 'line-up 'line-down 'page-up 'page-down 'thumb)
'top —
user clicked a scroll-to-top button 'bottom —
user clicked a scroll-to-bottom button 'line-up —
user clicked an arrow to scroll up or left one step 'line-down —
user clicked an arrow to scroll down or right one step 'page-up —
user clicked an arrow to scroll up or left one page 'page-down —
user clicked an arrow to scroll down or right one page 'thumb —
user dragged the scroll position indicator
method
(send a-scroll-event get-position) → dimension-integer?
method
(send a-scroll-event set-direction direction) → void?
direction : (or/c 'horizontal 'vertical)
method
(send a-scroll-event set-event-type type) → void?
type :
(or/c 'top 'bottom 'line-up 'line-down 'page-up 'page-down 'thumb)
method
(send a-scroll-event set-position position) → void?
position : dimension-integer?