gdk.event_scroll

Module for [EventScroll] class

Types 1

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.

Fields
GdkEventScroll _cInstance
Methods
void * _cPtr() nothrow
gdk.types.EventType type() @property nothrowGet `type` field. Returns: the type of the event ([gdk.types.EventType.Scroll]).
void type(gdk.types.EventType propval) @property nothrowSet `type` field. Params: propval = the type of the event ([gdk.types.EventType.Scroll]).
gdk.window.Window window() @property nothrowGet `window` field. Returns: the window which received the event.
void window(gdk.window.Window propval) @property nothrowSet `window` field. Params: propval = the window which received the event.
byte sendEvent() @property nothrowGet `sendEvent` field. Returns: true if the event was sent explicitly.
void sendEvent(byte propval) @property nothrowSet `sendEvent` field. Params: propval = true if the event was sent explicitly.
uint time() @property nothrowGet `time` field. Returns: the time of the event in milliseconds.
void time(uint propval) @property nothrowSet `time` field. Params: propval = the time of the event in milliseconds.
double x() @property nothrowGet `x` field. Returns: the x coordinate of the pointer relative to the window.
void x(double propval) @property nothrowSet `x` field. Params: propval = the x coordinate of the pointer relative to the window.
double y() @property nothrowGet `y` field. Returns: the y coordinate of the pointer relative to the window.
void y(double propval) @property nothrowSet `y` field. Params: propval = the y coordinate of the pointer relative to the window.
gdk.types.ModifierType state() @property nothrowGet `state` field. Returns: a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See #GdkModifierType.
void state(gdk.types.ModifierType propval) @property nothrowSet `state` field. Params: propval = a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See #GdkModifierType.
gdk.types.ScrollDirection direction() @property nothrowGet `direction` field. Returns: the direction to scroll to (one of [gdk.types.ScrollDirection.Up], [gdk.types.ScrollDirection.Down], [gdk.types.ScrollDirection.Left], [gdk.types.ScrollDirection.Rig...
void direction(gdk.types.ScrollDirection propval) @property nothrowSet `direction` field. Params: propval = the direction to scroll to (one of [gdk.types.ScrollDirection.Up], [gdk.types.ScrollDirection.Down], [gdk.types.ScrollDirection.Left], [gdk.types.ScrollDire...
gdk.device.Device device() @property nothrowGet `device` field. Returns: the master device that the event originated from. Use [gdk.event.Event.getSourceDevice] to get the slave device.
void device(gdk.device.Device propval) @property nothrowSet `device` field. Params: propval = the master device that the event originated from. Use [gdk.event.Event.getSourceDevice] to get the slave device.
double xRoot() @property nothrowGet `xRoot` field. Returns: the x coordinate of the pointer relative to the root of the screen.
void xRoot(double propval) @property nothrowSet `xRoot` field. Params: propval = the x coordinate of the pointer relative to the root of the screen.
double yRoot() @property nothrowGet `yRoot` field. Returns: the y coordinate of the pointer relative to the root of the screen.
void yRoot(double propval) @property nothrowSet `yRoot` field. Params: propval = the y coordinate of the pointer relative to the root of the screen.
double deltaX() @property nothrowGet `deltaX` field. Returns: the x coordinate of the scroll delta
void deltaX(double propval) @property nothrowSet `deltaX` field. Params: propval = the x coordinate of the scroll delta
double deltaY() @property nothrowGet `deltaY` field. Returns: the y coordinate of the scroll delta
void deltaY(double propval) @property nothrowSet `deltaY` field. Params: propval = the y coordinate of the scroll delta
uint isStop() @property nothrow
void isStop(uint propval) @property nothrow
Constructors
this(void * ptr, Flag!"Take" take)