Lines Matching defs:knot

52 // knot shapes corresponding to GrPointType enum
89 vp_knot_moved_handler (SPKnot *knot, Geom::Point const &ppointer, guint state, gpointer data)
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)
224 dragger->point_original = dragger->point = knot->pos;
229 (*i).set_pos (knot->pos);
274 knot(NULL),
281 // create the knot
282 this->knot = new SPKnot(SP_ACTIVE_DESKTOP, NULL);
283 this->knot->setMode(SP_KNOT_MODE_XOR);
284 this->knot->setFill(VP_KNOT_COLOR_NORMAL, VP_KNOT_COLOR_NORMAL, VP_KNOT_COLOR_NORMAL);
285 this->knot->setStroke(0x000000ff, 0x000000ff, 0x000000ff);
286 this->knot->updateCtrl();
287 knot->item->ctrlType = CTRL_TYPE_ANCHOR;
288 ControlManager::getManager().track(knot->item);
290 // move knot to the given point
291 this->knot->setPosition(this->point, SP_KNOT_STATE_NORMAL);
292 this->knot->show();
294 // connect knot's signals
295 this->_moved_connection = this->knot->moved_signal.connect(sigc::bind(sigc::ptr_fun(vp_knot_moved_handler), this));
296 this->_grabbed_connection = this->knot->grabbed_signal.connect(sigc::bind(sigc::ptr_fun(vp_knot_grabbed_handler), this));
297 this->_ungrabbed_connection = this->knot->ungrabbed_signal.connect(sigc::bind(sigc::ptr_fun(vp_knot_ungrabbed_handler), this));
312 knot_unref(this->knot);
316 Updates the statusbar tip of the dragger knot, based on its draggables
321 if (this->knot && this->knot->tip) {
322 g_free (this->knot->tip);
323 this->knot->tip = NULL;
329 this->knot->tip = g_strdup_printf (ngettext("<b>Finite</b> vanishing point shared by <b>%d</b> box",
336 this->knot->tip = g_strdup_printf (ngettext("<b>Infinite</b> vanishing point shared by <b>%d</b> box",
348 this->knot->tip = g_strconcat(desc1, desc2, NULL);