/inkscape/src/ui/tool/ |
H A D | modifier-tracker.cpp | 2 * Fine-grained modifier tracker for event handling. 13 #include "ui/tool/event-utils.h" 29 bool ModifierTracker::event(GdkEvent *event) argument 31 switch (event->type) { 33 switch (shortcut_key(event->key)) { 55 switch (shortcut_key(event->key)) {
|
H A D | event-utils.cpp | 15 #include "ui/tool/event-utils.h" 21 guint shortcut_key(GdkEventKey const &event) argument 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) argument 63 event.x -= canvas->_x0; 64 event.y -= canvas->_y0; 67 // while the next event i 103 state_after_event(GdkEvent *event) argument [all...] |
H A D | event-utils.h | 52 /** Checks whether Shift was held when the event was generated. */ 54 inline bool held_shift(E const &event) { argument 55 return state_held_shift(event.state); 58 /** Checks whether Control was held when the event was generated. */ 60 inline bool held_control(E const &event) { argument 61 return state_held_control(event.state); 64 /** Checks whether Alt was held when the event was generated. */ 66 inline bool held_alt(E const &event) { argument 67 return state_held_alt(event.state); 70 /** True if from the set of Ctrl, Shift and Alt only Ctrl was held when the event 73 held_only_control(E const &event) argument 80 held_only_shift(E const &event) argument 87 held_only_alt(E const &event) argument 92 held_no_modifiers(E const &event) argument 97 held_any_modifiers(E const &event) argument 102 event_point(E const &event) argument 109 held_button(E const &event) argument [all...] |
H A D | selectable-control-point.cpp | 11 #include "ui/tool/event-utils.h" 62 void SelectableControlPoint::dragged(Geom::Point &new_pos, GdkEventMotion *event) argument 64 _selection._pointDragged(new_pos, event); 72 bool SelectableControlPoint::clicked(GdkEventButton *event) argument 74 if (_selection._pointClicked(this, event)) 77 if (event->button != 1) return false; 78 if (held_shift(*event)) {
|
H A D | curve-drag-point.cpp | 14 #include "ui/tool/event-utils.h" 37 bool CurveDragPoint::_eventHandler(Inkscape::UI::Tools::ToolBase *event_context, GdkEvent *event) argument 44 return ControlPoint::_eventHandler(event_context, event); 47 bool CurveDragPoint::grabbed(GdkEventMotion */*event*/) 70 void CurveDragPoint::dragged(Geom::Point &new_pos, GdkEventMotion *event) argument 75 if (_is_drag_cancelled(event) && _segment_was_degenerate) { 82 if (_drag_initiated && !(event->state & GDK_SHIFT_MASK)) { 110 if(held_shift(*event)){ 116 if(held_shift(*event)){ 135 bool CurveDragPoint::clicked(GdkEventButton *event) argument 168 doubleclicked(GdkEventButton *event) argument [all...] |
H A D | selector.cpp | 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) { function in class:Inkscape::UI::SelectorPoint 57 virtual bool _eventHandler(Inkscape::UI::Tools::ToolBase *event_context, GdkEvent *event) { argument 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) { argument 86 _selector->signal_area.emit(sel, event); 89 virtual bool clicked(GdkEventButton *event) { argument 114 event(Inkscape::UI::Tools::ToolBase *event_context, GdkEvent *event) argument [all...] |
H A D | manipulator.h | 42 /// Handle input event. Returns true if handled. 43 virtual bool event(Inkscape::UI::Tools::ToolBase *, GdkEvent *)=0; 148 virtual bool event(Inkscape::UI::Tools::ToolBase *event_context, GdkEvent *event) { argument 150 if ((*i).second->event(event_context, event)) return true;
|
/inkscape/src/helper/ |
H A D | window.cpp | 19 static bool on_window_key_press(GdkEventKey* event) argument 23 shortcut = Inkscape::UI::Tools::get_group0_keyval (event) | 24 ( event->state & GDK_SHIFT_MASK ? 26 ( event->state & GDK_CONTROL_MASK ? 28 ( event->state & GDK_MOD1_MASK ? 43 static gboolean sp_window_key_press(GtkWidget *, GdkEventKey *event) argument 45 return on_window_key_press(event);
|
/inkscape/src/debug/ |
H A D | gdk-event-latency-tracker.cpp | 14 #include "debug/gdk-event-latency-tracker.h" 27 boost::optional<double> GdkEventLatencyTracker::process(GdkEvent const *event) { argument 28 guint32 const timestamp=gdk_event_get_time(const_cast<GdkEvent *>(event));
|
H A D | logger.cpp | 17 #include "debug/simple-event.h" 160 void Logger::_start(Event const &event) { argument 161 Util::ptr_shared<char> name=event.name(); 171 unsigned property_count=event.propertyCount(); 173 Event::PropertyPair property=event.property(i); 184 event.generateChildEvents();
|
/inkscape/src/ |
H A D | event.h | 19 #include "xml/event-fns.h" 33 : event (_event), type (_type), description (_description) { } 35 virtual ~Event() { sp_repr_free_log (event); } 37 XML::Event *event; member in struct:Inkscape::Event
|
H A D | sp-anchor.cpp | 119 /* fixme: We should forward event to appropriate container/view */ 120 gint SPAnchor::event(SPEvent* event) { argument 121 switch (event->type) { 130 (static_cast<Inkscape::UI::View::View*>(event->data))->mouseover(); 134 (static_cast<Inkscape::UI::View::View*>(event->data))->mouseout();
|
H A D | event-log.h | 21 #include "event.h" 30 * CompositeUndoStackObserver for each document. The event log is then notified on all commit, undo 33 * Consecutive events of the same type are grouped with the first event as a parent and following 36 * If a Gtk::TreeView is connected to the event log, the TreeView's selection and its nodes 38 * this happens, the event log will block the TreeView's callbacks to prevent circular updates. 55 Gtk::TreeModelColumn<Event *> event; member in struct:Inkscape::EventLog::EventModelColumns 62 add(event); add(type); add(description); add(child_count); 84 void setCurrEvent(iterator event) { _curr_event = event; } argument 85 void setCurrEventParent(iterator event) { _curr_event_paren argument [all...] |
H A D | document-undo.cpp | 53 #include "debug/event-tracker.h" 54 #include "debug/simple-event.h" 56 #include "event.h" 166 (doc->priv->undo.back())->event = 167 sp_repr_coalesce_log ((doc->priv->undo.back())->event, log); 169 Inkscape::Event *event = new Inkscape::Event(log, event_type, event_description); local 170 doc->priv->undo.push_back(event); 172 doc->priv->undoStackObservers.notifyUndoCommitEvent(event); 213 Inkscape::Event *event = new Inkscape::Event(priv.partial); local 214 priv.undo.push_back(event); [all...] |
/inkscape/src/ui/widget/ |
H A D | spinbutton.cpp | 66 bool SpinButton::on_my_focus_in_event(GdkEventFocus* /*event*/) 69 return false; // do not consume the event 72 bool SpinButton::on_my_key_press_event(GdkEventKey* event) argument 74 switch (Inkscape::UI::Tools::get_group0_keyval (event)) { 77 return true; // I consumed the event 81 if (event->state & GDK_CONTROL_MASK) { 83 return true; // I consumed the event 90 return false; // do not consume the event
|
H A D | rotateable.cpp | 42 bool Rotateable::on_click(GdkEventButton *event) { argument 43 if (event->button == 1) { 44 drag_started_x = event->x; 45 drag_started_y = event->y; 46 modifier = get_single_modifier(modifier, event->state); 91 bool Rotateable::on_motion(GdkEventMotion *event) { argument 93 double dist = Geom::L2(Geom::Point(event->x, event->y) - Geom::Point(drag_started_x, drag_started_y)); 94 double angle = atan2(event->y - drag_started_y, event 117 on_release(GdkEventButton *event) argument 134 on_scroll(GdkEventScroll* event) argument [all...] |
H A D | imagetoggler.cpp | 130 ImageToggler::activate_vfunc(GdkEvent* event, argument 137 _signal_pre_toggle.emit(event);
|
H A D | layertypeicon.cpp | 141 LayerTypeIcon::activate_vfunc(GdkEvent* event, argument 148 _signal_pre_toggle.emit(event);
|
/inkscape/src/widgets/ |
H A D | spinbutton-events.cpp | 27 gboolean spinbutton_focus_in(GtkWidget *w, GdkEventKey * /*event*/, gpointer /*data*/) 41 return FALSE; // I didn't consume the event 66 gboolean spinbutton_keypress(GtkWidget *w, GdkEventKey *event, gpointer /*data*/) argument 68 gboolean result = FALSE; // I didn't consume the event 70 switch (Inkscape::UI::Tools::get_group0_keyval(event)) { 74 result = TRUE; // I consumed the event 79 result = TRUE; // I consumed the event 85 result = FALSE; // I didn't consume the event 101 result = TRUE; // I consumed the event 114 result = TRUE; // I consumed the event [all...] |
/inkscape/src/libgdl/ |
H A D | gdl-dock-item-button-image.c | 35 GdkEventExpose *event) 44 cairo_t *cr = gdk_cairo_create (event->window); 45 cairo_translate (cr, event->area.x, event->area.y); 34 gdl_dock_item_button_image_expose(GtkWidget *widget, GdkEventExpose *event) argument
|
/inkscape/src/ui/tools/ |
H A D | zoom-tool.cpp | 74 bool ZoomTool::root_handler(GdkEvent* event) { argument 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 [all...] |
/inkscape/src/ui/dialog/ |
H A D | knot-properties.cpp | 40 //#include "event-context.h" 154 bool KnotPropertiesDialog::_handleKeyEvent(GdkEventKey * /*event*/) 157 /*switch (get_group0_keyval(event)) { 168 void KnotPropertiesDialog::_handleButtonEvent(GdkEventButton* event) argument 170 if ( (event->type == GDK_2BUTTON_PRESS) && (event->button == 1) ) {
|
H A D | lpe-powerstroke-properties.cpp | 40 //#include "event-context.h" 155 bool PowerstrokePropertiesDialog::_handleKeyEvent(GdkEventKey * /*event*/) 158 /*switch (get_group0_keyval(event)) { 169 void PowerstrokePropertiesDialog::_handleButtonEvent(GdkEventButton* event) argument 171 if ( (event->type == GDK_2BUTTON_PRESS) && (event->button == 1) ) {
|
/inkscape/src/ui/ |
H A D | dialog-events.cpp | 91 sp_dialog_event_handler (GtkWindow *win, GdkEvent *event, gpointer data) argument 102 switch (event->type) { 106 switch (Inkscape::UI::Tools::get_group0_keyval (&event->key)) { 115 if (MOD__CTRL_ONLY(event)) { 122 GdkEventAny event; local 124 event.type = GDK_DELETE; 125 event.window = gtk_widget_get_window (widget); 126 event.send_event = TRUE; 127 g_object_ref (G_OBJECT (event.window)); 128 gtk_main_do_event(reinterpret_cast<GdkEvent*>(&event)); [all...] |
/inkscape/src/display/ |
H A D | sp-canvas-item.h | 95 int (* event) (SPCanvasItem *item, GdkEvent *event); member in struct:_SPCanvasItemClass
|