Gjsify LogoGjsify Logo

Generated from button presses for the buttons 4 to 7. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.

Some GDK backends can also generate “smooth” scroll events, which can be recognized by the %GDK_SCROLL_SMOOTH scroll direction. For these, the scroll deltas can be obtained with gdk_event_get_scroll_deltas().

record

Hierarchy

  • EventScroll

Index

Constructors

Properties

deltaX: number

the x coordinate of the scroll delta

field
deltaY: number

the y coordinate of the scroll delta

field
device: Gdk.Device

the master device that the event originated from. Use gdk_event_get_source_device() to get the slave device.

field
direction: Gdk.ScrollDirection

the direction to scroll to (one of %GDK_SCROLL_UP, %GDK_SCROLL_DOWN, %GDK_SCROLL_LEFT, %GDK_SCROLL_RIGHT or %GDK_SCROLL_SMOOTH).

field
isStop: number
sendEvent: number

%TRUE if the event was sent explicitly.

field

a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See #GdkModifierType.

field
time: number

the time of the event in milliseconds.

field

the type of the event (%GDK_SCROLL).

field
window: Gdk.Window

the window which received the event.

field
x: number

the x coordinate of the pointer relative to the window.

field
xRoot: number

the x coordinate of the pointer relative to the root of the screen.

field
y: number

the y coordinate of the pointer relative to the window.

field
yRoot: number

the y coordinate of the pointer relative to the root of the screen.

field
name: string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method