Searched defs:event (Results 1 - 25 of 106) sorted by relevance

12345

/inkscape/src/ui/tool/
H A Dmodifier-tracker.cpp2 * 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 Devent-utils.cpp15 #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 Devent-utils.h52 /** 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 Dselectable-control-point.cpp11 #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 Dcurve-drag-point.cpp14 #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 Dselector.cpp18 #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 Dmanipulator.h42 /// 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 Dwindow.cpp19 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 Dgdk-event-latency-tracker.cpp14 #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 Dlogger.cpp17 #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 Devent.h19 #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 Dsp-anchor.cpp119 /* 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 Devent-log.h21 #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 Ddocument-undo.cpp53 #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 Dspinbutton.cpp66 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 Drotateable.cpp42 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 Dimagetoggler.cpp130 ImageToggler::activate_vfunc(GdkEvent* event, argument
137 _signal_pre_toggle.emit(event);
H A Dlayertypeicon.cpp141 LayerTypeIcon::activate_vfunc(GdkEvent* event, argument
148 _signal_pre_toggle.emit(event);
/inkscape/src/widgets/
H A Dspinbutton-events.cpp27 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 Dgdl-dock-item-button-image.c35 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 Dzoom-tool.cpp74 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 Dknot-properties.cpp40 //#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 Dlpe-powerstroke-properties.cpp40 //#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 Ddialog-events.cpp91 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 Dsp-canvas-item.h95 int (* event) (SPCanvasItem *item, GdkEvent *event); member in struct:_SPCanvasItemClass

Completed in 318 milliseconds

12345