GdkEventScroll

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.types.ScrollDirection.Smooth scroll direction. For these, the scroll deltas can be obtained with gdk.event.Event.getScrollDeltas.

Members

Variables

deltaX
double deltaX;

the x coordinate of the scroll delta

deltaY
double deltaY;

the y coordinate of the scroll delta

device
GdkDevice* device;

the master device that the event originated from. Use gdk.event.Event.getSourceDevice to get the slave device.

direction
GdkScrollDirection direction;

the direction to scroll to (one of gdk.types.ScrollDirection.Up, gdk.types.ScrollDirection.Down, gdk.types.ScrollDirection.Left, gdk.types.ScrollDirection.Right or gdk.types.ScrollDirection.Smooth).

isStop
uint isStop;
sendEvent
byte sendEvent;

true if the event was sent explicitly.

state
GdkModifierType state;

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

time
uint time;

the time of the event in milliseconds.

type
GdkEventType type;

the type of the event (gdk.types.EventType.Scroll).

window
GdkWindow* window;

the window which received the event.

x
double x;

the x coordinate of the pointer relative to the window.

xRoot
double xRoot;

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

y
double y;

the y coordinate of the pointer relative to the window.

yRoot
double yRoot;

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