Lines Matching defs:event
74 bool ZoomTool::root_handler(GdkEvent* event) {
82 switch (event->type) {
85 Geom::Point const button_w(event->button.x, event->button.y);
88 if (event->button.button == 1 && !this->space_panning) {
90 xp = (gint) event->button.x;
91 yp = (gint) event->button.y;
99 } else if (event->button.button == 3) {
100 double const zoom_rel( (event->button.state & GDK_SHIFT_MASK)
110 NULL, event->button.time);
117 if ((event->motion.state & GDK_BUTTON1_MASK) && !this->space_panning) {
121 && ( abs( (gint) event->motion.x - xp ) < tolerance )
122 && ( abs( (gint) event->motion.y - yp ) < tolerance ) ) {
130 Geom::Point const motion_w(event->motion.x, event->motion.y);
139 Geom::Point const button_w(event->button.x, event->button.y);
142 if ( event->button.button == 1 && !this->space_panning) {
145 if (b && !within_tolerance && !(GDK_SHIFT_MASK & event->button.state) ) {
148 double const zoom_rel( (event->button.state & GDK_SHIFT_MASK)
161 sp_canvas_item_ungrab(this->grabbed, event->button.time);
170 switch (get_group0_keyval (&event->key)) {
187 if (!MOD__CTRL_ONLY(event))
200 ret = this->deleteSelectedDrag(MOD__CTRL_ONLY(event));
208 switch (get_group0_keyval (&event->key)) {
223 ret = ToolBase::root_handler(event);