Lines Matching defs:event
18 #include "ui/tool/event-utils.h"
28 * are passed to it using Selector's event() function. When left mouse button
52 bool event(Inkscape::UI::Tools::ToolBase *ec, GdkEvent *e) {
57 virtual bool _eventHandler(Inkscape::UI::Tools::ToolBase *event_context, GdkEvent *event) {
58 if (event->type == GDK_KEY_PRESS && shortcut_key(event->key) == GDK_KEY_Escape &&
65 return ControlPoint::_eventHandler(event_context, event);
82 virtual void ungrabbed(GdkEventButton *event) {
86 _selector->signal_area.emit(sel, event);
89 virtual bool clicked(GdkEventButton *event) {
90 if (event->button != 1) return false;
91 _selector->signal_point.emit(position(), event);
114 bool Selector::event(Inkscape::UI::Tools::ToolBase *event_context, GdkEvent *event)
118 // press events here, it won't interfere with any other event handling.
119 switch (event->type) {
123 if (event->button.button == 1 && !event_context->space_panning) {
124 _dragger->setPosition(_desktop->w2d(event_point(event->motion)));
125 return _dragger->event(event_context, event);