/inkscape/src/ |
H A D | knot-ptr.h | 4 void knot_deleted_callback(void* knot); 5 void knot_created_callback(void* knot); 6 void check_if_knot_deleted(void* knot);
|
H A D | knot-ptr.cpp | 4 #include "knot-ptr.h" 8 void knot_deleted_callback(void* knot) { argument 9 if (std::find(deleted_knots.begin(), deleted_knots.end(), knot) == deleted_knots.end()) { 10 deleted_knots.push_back(knot); 14 void knot_created_callback(void* knot) { argument 15 std::list<void*>::iterator it = std::find(deleted_knots.begin(), deleted_knots.end(), knot); 21 void check_if_knot_deleted(void* knot) { argument 22 if (std::find(deleted_knots.begin(), deleted_knots.end(), knot) != deleted_knots.end()) { 23 g_warning("Accessed knot after it was freed at %p", knot); [all...] |
H A D | knot.cpp | 23 #include "knot.h" 24 #include "knot-ptr.h" 54 void knot_ref(SPKnot* knot) { argument 55 knot->ref_count++; 58 void knot_unref(SPKnot* knot) { argument 59 if (--knot->ref_count < 1) { 60 delete knot; 65 static int sp_knot_handler(SPCanvasItem *item, GdkEvent *event, SPKnot *knot); 171 // FIXME: cannot snap to destroyed knot (lp:1309050) 197 static int sp_knot_handler(SPCanvasItem */*item*/, GdkEvent *event, SPKnot *knot) argument 377 sp_knot_handler_request_position(GdkEvent *event, SPKnot *knot) argument [all...] |
H A D | knotholder.h | 52 void knot_moved_handler(SPKnot *knot, Geom::Point const &p, unsigned int state); 53 void knot_clicked_handler(SPKnot *knot, unsigned int state); 54 void knot_ungrabbed_handler(SPKnot *knot, unsigned int); 90 void knot_clicked_handler(SPKnot *knot, guint state, gpointer data); 91 void knot_moved_handler(SPKnot *knot, Geom::Point const *p, guint state, gpointer data); 92 void knot_ungrabbed_handler(SPKnot *knot, unsigned int state, KnotHolder *kh);
|
H A D | knotholder.cpp | 21 #include "knot.h" 23 #include "knot-holder-entity.h" 89 mgr.updateItem(e->knot->item); 106 const SPKnot *knot = (*i)->knot; local 108 if (knot && (knot->flags & SP_KNOT_MOUSEOVER)) { 117 KnotHolder::knot_clicked_handler(SPKnot *knot, guint state) argument 124 if (e->knot == knot) { 178 knot_moved_handler(SPKnot *knot, Geom::Point const &p, guint state) argument [all...] |
H A D | knot-holder-entity.cpp | 18 #include "knot-holder-entity.h" 37 knot = new SPKnot(desktop, tip); 45 g_object_set(G_OBJECT(knot->item), "shape", shape, NULL); 46 g_object_set(G_OBJECT(knot->item), "mode", mode, NULL); 49 knot->item->ctrlType = type; 51 knot->fill [SP_KNOT_STATE_NORMAL] = color; 52 g_object_set (G_OBJECT(knot->item), "fill_color", color, NULL); 55 knot->show(); 57 _moved_connection = knot->moved_signal.connect(sigc::mem_fun(*parent_holder, &KnotHolder::knot_moved_handler)); 58 _click_connection = knot [all...] |
H A D | knot.h | 20 #include "knot-enums.h" 38 * A knot is a draggable object, with callbacks to change something by 75 double pressure; /**< The tablet pen pressure when the knot is being dragged. */ 103 * Show knot on its canvas. 108 * Hide knot on its canvas. 113 * Set flag in knot, with side effects. 118 * Update knot's pixbuf and set its control state. 123 * Request or set new position for knot. 128 * Update knot for dragging and tell canvas an item was grabbed. 133 * Move knot t [all...] |
H A D | vanishing-point.cpp | 52 // knot shapes corresponding to GrPointType enum 89 vp_knot_moved_handler (SPKnot *knot, Geom::Point const &ppointer, guint state, gpointer data) argument 195 knot->moveto(p); 211 vp_knot_grabbed_handler (SPKnot */*knot*/, unsigned int /*state*/, gpointer data) 220 vp_knot_ungrabbed_handler (SPKnot *knot, guint /*state*/, gpointer data) argument 224 dragger->point_original = dragger->point = knot->pos; 229 (*i).set_pos (knot->pos); 274 knot(NULL), 281 // create the knot 282 this->knot [all...] |
H A D | knot-holder-entity.h | 20 #include "knot.h" 43 knot(NULL), 61 /* the get/set/click handlers are virtual functions; each handler class for a knot 73 SPKnot *knot; member in class:KnotHolderEntity 82 /** Connection to \a knot's "moved" signal. */ 84 /** Connection to \a knot's "clicked" signal. */ 86 /** Connection to \a knot's "ungrabbed" signal. */
|
H A D | seltrans.cpp | 31 #include "knot.h" 58 static void sp_sel_trans_handle_grab(SPKnot *knot, guint state, SPSelTransHandle const* data); 59 static void sp_sel_trans_handle_ungrab(SPKnot *knot, guint state, SPSelTransHandle const* data); 60 static void sp_sel_trans_handle_click(SPKnot *knot, guint state, SPSelTransHandle const* data); 61 static void sp_sel_trans_handle_new_event(SPKnot *knot, Geom::Point const &position, guint32 state, SPSelTransHandle const* data); 62 static gboolean sp_sel_trans_handle_request(SPKnot *knot, Geom::Point *p, guint state, SPSelTransHandle const *data); 66 static gboolean sp_sel_trans_handle_event(SPKnot *knot, GdkEvent *event, SPSelTransHandle const*) argument 73 /* stamping mode: both mode(show content and outline) operation with knot */ 74 if (!SP_KNOT_IS_GRABBED(knot)) { 77 SPDesktop *desktop = knot 673 sp_sel_trans_handle_grab(SPKnot *knot, guint state, SPSelTransHandle const* data) argument 680 sp_sel_trans_handle_ungrab(SPKnot *knot, guint , SPSelTransHandle const* ) argument 685 sp_sel_trans_handle_new_event(SPKnot *knot, Geom::Point const& position, guint state, SPSelTransHandle const *data) argument 694 sp_sel_trans_handle_request(SPKnot *knot, Geom::Point *position, guint state, SPSelTransHandle const *data) argument 701 sp_sel_trans_handle_click(SPKnot *knot, guint state, SPSelTransHandle const* data) argument 731 handleGrab(SPKnot *knot, guint , SPSelTransHandle const &handle) argument 755 handleNewEvent(SPKnot *knot, Geom::Point *position, guint state, SPSelTransHandle const &handle) argument 788 handleRequest(SPKnot *knot, Geom::Point *position, guint state, SPSelTransHandle const &handle) argument [all...] |
H A D | seltrans.h | 25 #include "knot.h" 75 int handleRequest(SPKnot *knot, Geom::Point *position, unsigned int state, SPSelTransHandle const &handle); 76 void handleGrab(SPKnot *knot, unsigned int state, SPSelTransHandle const &handle); 77 void handleClick(SPKnot *knot, unsigned int state, SPSelTransHandle const &handle); 78 void handleNewEvent(SPKnot *knot, Geom::Point *position, unsigned int state, SPSelTransHandle const &handle); 192 Geom::Point _point; ///< original position of the knot being used for the current transform 193 Geom::Point _point_geom; ///< original position of the knot being used for the current transform
|
H A D | sp-offset.h | 63 Geom::Point knot; member in class:SPOffset
|
H A D | gradient-drag.cpp | 43 #include "knot.h" 80 // knot shapes corresponding to GrPointType enum (in sp-gradient.h) 385 // add the knot 398 // add the knot 410 // add the knot 736 static void gr_knot_moved_handler(SPKnot *knot, Geom::Point const &ppointer, guint state, gpointer data) argument 810 knot->moveto(p); 895 knot->moveto(p); 922 // the draglimits are between knot(lowest_i - 1) and knot(highest_ 1071 gr_knot_ungrabbed_handler(SPKnot *knot, unsigned int state, gpointer data) argument 1387 SPKnot *knot = handle->knot; local 1396 SPKnot *knot = handle->knot; local [all...] |
H A D | vanishing-point.h | 19 #include "knot.h" 130 SPKnot *knot; member in struct:Box3D::VPDragger 132 // position of the knot, desktop coords 134 // position of the knot before it began to drag; updated when released
|
H A D | gradient-drag.h | 73 This class holds together a visible on-canvas knot and a list of draggables that need to 74 be moved when the knot moves. Normally there's one draggable in the list, but there may 83 SPKnot *knot; member in struct:GrDragger 85 // position of the knot, desktop coords 87 // position of the knot before it began to drag; updated when released
|
H A D | sp-offset.cpp | 770 * to set the radius when the control knot moves. 932 * the control knot. 947 (*px) = offset->knot;
|
/inkscape/src/ui/tools/ |
H A D | connector-tool.cpp | 97 #include "knot.h" 125 static void cc_select_handle(SPKnot* knot); 126 static void cc_deselect_handle(SPKnot* knot); 353 cc_select_handle(SPKnot* knot) argument 355 knot->setShape(SP_KNOT_SHAPE_SQUARE); 356 knot->setSize(10); 357 knot->setAnchor(SP_ANCHOR_CENTER); 358 knot->setFill(0x0000ffff, 0x0000ffff, 0x0000ffff); 359 knot->updateCtrl(); 363 cc_deselect_handle(SPKnot* knot) argument 959 cc_generic_knot_handler(SPCanvasItem *, GdkEvent *event, SPKnot *knot) argument 1062 SPKnot *knot = new SPKnot(desktop, 0); local 1078 G_CALLBACK(cc_generic_knot_handler), knot); local 1180 SPKnot *knot = new SPKnot(this->desktop, local 1198 G_CALLBACK(cc_generic_knot_handler), knot); local 1246 SPKnot *knot = new SPKnot(cc->desktop, 0); local [all...] |
H A D | measure-tool.h | 65 void knotStartMovedHandler(SPKnot */*knot*/, Geom::Point const &ppointer, guint state); 66 void knotEndMovedHandler(SPKnot */*knot*/, Geom::Point const &ppointer, guint state); 67 void knotClickHandler(SPKnot *knot, guint state); 68 void knotUngrabbedHandler(SPKnot */*knot*/, unsigned int /*state*/);
|
H A D | tool-base.cpp | 57 #include "knot.h" 58 #include "knot-ptr.h" 882 * Returns true if we're hovering above a knot (needed because we don't want to pre-snap in that case). 1236 * @param dse_item2 Another pointer, storing a reference to a knot or controlpoint. 1356 gpointer knot = dse->getItem2(); local 1357 check_if_knot_deleted(knot); 1358 if (knot && SP_IS_KNOT(knot)) { 1359 sp_knot_handler_request_position(dse->getEvent(), SP_KNOT(knot));
|
H A D | measure-tool.cpp | 38 #include "ui/dialog/knot-properties.h" 55 #include "knot.h" 61 #include "knot-enums.h" 441 //This function is used to reverse the Measure, I do it in two steps because when move the knot the 456 void MeasureTool::knotClickHandler(SPKnot *knot, guint state) argument 463 Inkscape::UI::Dialogs::KnotPropertiesDialog::showDialog(desktop, knot, unit_name); 467 void MeasureTool::knotStartMovedHandler(SPKnot */*knot*/, Geom::Point const &ppointer, guint state) 488 void MeasureTool::knotEndMovedHandler(SPKnot */*knot*/, Geom::Point const &ppointer, guint state) 509 void MeasureTool::knotUngrabbedHandler(SPKnot */*knot*/, unsigned int state)
|
/inkscape/src/live_effects/ |
H A D | lpe-bendpath.cpp | 23 #include "knot-holder-entity.h" 200 Geom::Point knot_pos = this->knot->pos * item->i2dt_affine().inverse();
|
H A D | lpe-patternalongpath.cpp | 21 #include "knot-holder-entity.h" 309 Geom::Point knot_pos = this->knot->pos * item->i2dt_affine().inverse();
|
/inkscape/src/live_effects/parameter/ |
H A D | powerstrokepointarray.cpp | 56 // scale each width knot with the average scaling in X and Y 194 this->parent_holder->knot_ungrabbed_handler(this->knot, 0); 202 // delete the clicked knot 207 // remove knot from knotholder 222 // add a knot to XML 224 vec.insert(vec.begin() + _index, 1, vec.at(_index)); // this clicked knot is duplicated 236 // add knot to knotholder
|
H A D | filletchamferpointarray.cpp | 160 //line but with handles, the node inserted into dont fire the knot 794 this->knot->tip = g_strdup(tip); 795 this->knot->show(); 825 this->parent_holder->knot_ungrabbed_handler(this->knot, 0);
|
/inkscape/src/ui/ |
H A D | object-edit.cpp | 40 #include "knot-holder-entity.h" 1175 * set attributes via inner (t=t0) knot point: 1226 * set attributes via outer (t=1) knot point: 1375 offset->knot = p_snapped;
|