gdk.event_scroll
Module for EventScroll class
class EventScroll
Types 1
classEventScroll
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 _cInstanceMethods
void * _cPtr()gdk.types.EventType type() @propertyGet `type` field. Returns: the type of the event ([gdk.types.EventType.Scroll]).void type(gdk.types.EventType propval) @propertySet `type` field. Params: propval = the type of the event ([gdk.types.EventType.Scroll]).gdk.window.Window window() @propertyGet `window` field. Returns: the window which received the event.void window(gdk.window.Window propval) @propertySet `window` field. Params: propval = the window which received the event.void sendEvent(byte propval) @propertySet `sendEvent` field. Params: propval = true if the event was sent explicitly.void time(uint propval) @propertySet `time` field. Params: propval = the time of the event in milliseconds.void x(double propval) @propertySet `x` field. Params: propval = the x coordinate of the pointer relative to the window.void y(double propval) @propertySet `y` field. Params: propval = the y coordinate of the pointer relative to the window.gdk.types.ModifierType state() @propertyGet `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) @propertySet `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() @propertyGet `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) @propertySet `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() @propertyGet `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) @propertySet `device` field. Params: propval = the master device that the event originated from. Use [gdk.event.Event.getSourceDevice] to get the slave device.double xRoot() @propertyGet `xRoot` field. Returns: the x coordinate of the pointer relative to the root of the screen.void xRoot(double propval) @propertySet `xRoot` field. Params: propval = the x coordinate of the pointer relative to the root of the screen.double yRoot() @propertyGet `yRoot` field. Returns: the y coordinate of the pointer relative to the root of the screen.void yRoot(double propval) @propertySet `yRoot` field. Params: propval = the y coordinate of the pointer relative to the root of the screen.void deltaX(double propval) @propertySet `deltaX` field. Params: propval = the x coordinate of the scroll deltavoid deltaY(double propval) @propertySet `deltaY` field. Params: propval = the y coordinate of the scroll deltauint isStop() @propertyvoid isStop(uint propval) @property