Struct
GdkEventScroll
Description [src]
struct GdkEventScroll {
GdkEventType type;
GdkWindow* window;
gint8 send_event;
guint32 time;
gdouble x;
gdouble y;
GdkModifierType* state;
GdkScrollDirection direction;
GdkDevice* device;
gdouble x_root;
gdouble y_root;
gdouble delta_x;
gdouble delta_y;
guint is_stop : 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_SCROLL_SMOOTH
scroll direction. For
these, the scroll deltas can be obtained with gdk_event_get_scroll_deltas().
Structure members
type:
GdkEventType
The type of the event (
GDK_SCROLL
).window:
GdkWindow
The window which received the event.
send_event:
gint8
TRUE
if the event was sent explicitly.time:
guint32
The time of the event in milliseconds.
x:
gdouble
The x coordinate of the pointer relative to the window.
y:
gdouble
The y coordinate of the pointer relative to the window.
state:
GdkModifierType
A bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See
GdkModifierType
.direction:
GdkScrollDirection
The direction to scroll to (one of
GDK_SCROLL_UP
,GDK_SCROLL_DOWN
,GDK_SCROLL_LEFT
,GDK_SCROLL_RIGHT
orGDK_SCROLL_SMOOTH
).device:
GdkDevice
The master device that the event originated from. Use
gdk_event_get_source_device()
to get the slave device.x_root:
gdouble
The x coordinate of the pointer relative to the root of the screen.
y_root:
gdouble
The y coordinate of the pointer relative to the root of the screen.
delta_x:
gdouble
The x coordinate of the scroll delta.
delta_y:
gdouble
The y coordinate of the scroll delta.
is_stop:
guint
No description available.