Lines Matching defs:event
15 #include "ui/tool/event-utils.h"
21 guint shortcut_key(GdkEventKey const &event)
26 event.hardware_keycode,
27 (GdkModifierType) event.state,
28 0 /*event->key.group*/,
39 // while the next event is also a key notify with the same keyval and mask,
56 unsigned combine_motion_events(SPCanvas *canvas, GdkEventMotion &event, gint mask)
63 event.x -= canvas->_x0;
64 event.y -= canvas->_y0;
67 // while the next event is also a motion notify
71 if (event_next->motion.device == event.device) {
73 event.send_event = next.send_event;
74 event.time = next.time;
75 event.x = next.x;
76 event.y = next.y;
77 event.state = next.state;
78 event.is_hint = next.is_hint;
79 event.x_root = next.x_root;
80 event.y_root = next.y_root;
81 if (event.axes && next.axes) {
82 memcpy(event.axes, next.axes, gdk_device_get_n_axes(event.device));
95 event.x += canvas->_x0;
96 event.y += canvas->_y0;
101 /** Returns the modifier state valid after this event. Use this when you process events
103 unsigned state_after_event(GdkEvent *event)
106 switch (event->type) {
108 state = event->key.state;
109 switch(shortcut_key(event->key)) {
126 state = event->key.state;
127 switch(shortcut_key(event->key)) {