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_SCROLL_SMOOTH scroll direction. For these, the scroll deltas can be obtained with gdk_event_get_scroll_deltas(). GdkEventType type; the type of the event (GDK_SCROLL). GdkWindow *window; the window which received the event. gint8 send_event; TRUE if the event was sent explicitly (e.g. using XSendEvent). guint32 time; the time of the event in milliseconds. gdouble x; the x coordinate of the pointer relative to the window. gdouble y; the y coordinate of the pointer relative to the window. guint state; a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType. [type GdkModifierType] GdkScrollDirection direction; the direction to scroll to (one of GDK_SCROLL_UP, GDK_SCROLL_DOWN, GDK_SCROLL_LEFT, GDK_SCROLL_RIGHT or GDK_SCROLL_SMOOTH). GdkDevice *device; the device where the event originated. gdouble x_root; the x coordinate of the pointer relative to the root of the screen. gdouble y_root; the y coordinate of the pointer relative to the root of the screen. gdouble delta_x; gdouble delta_y;

Members

Variables

deltaX
double deltaX;
Undocumented in source.
deltaY
double deltaY;
Undocumented in source.
device
GdkDevice* device;
Undocumented in source.
direction
GdkScrollDirection direction;
Undocumented in source.
sendEvent
byte sendEvent;
Undocumented in source.
state
uint state;
Undocumented in source.
time
uint time;
Undocumented in source.
type
GdkEventType type;
Undocumented in source.
window
GdkWindow* window;
Undocumented in source.
x
double x;
Undocumented in source.
xRoot
double xRoot;
Undocumented in source.
y
double y;
yRoot
double yRoot;
Undocumented in source.

Meta