Lines Matching refs:knot

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)
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)
365 knot->setShape(SP_KNOT_SHAPE_SQUARE);
366 knot->setSize(8);
367 knot->setAnchor(SP_ANCHOR_CENTER);
368 knot->setFill(0xffffff00, 0xff0000ff, 0xff0000ff);
369 knot->updateCtrl();
959 cc_generic_knot_handler(SPCanvasItem *, GdkEvent *event, SPKnot *knot)
961 g_assert (knot != NULL);
963 //g_object_ref(knot);
964 knot_ref(knot);
967 knot->desktop->event_context);
974 knot->setFlag(SP_KNOT_MOUSEOVER, TRUE);
976 cc->active_handle = knot;
979 knot->desktop->event_context->defaultMessageContext()->set(
986 knot->setFlag(SP_KNOT_MOUSEOVER, FALSE);
996 knot->desktop->event_context->defaultMessageContext()->clear();
1005 //g_object_unref(knot);
1006 knot_unref(knot);
1013 endpt_handler(SPKnot */*knot*/, GdkEvent *event, ConnectorTool *cc)
1062 SPKnot *knot = new SPKnot(desktop, 0);
1064 knot->owner = item;
1065 knot->setShape(SP_KNOT_SHAPE_SQUARE);
1066 knot->setSize(8);
1067 knot->setAnchor(SP_ANCHOR_CENTER);
1068 knot->setFill(0xffffff00, 0xff0000ff, 0xff0000ff);
1069 knot->updateCtrl();
1071 // We don't want to use the standard knot handler.
1072 g_signal_handler_disconnect(G_OBJECT(knot->item),
1073 knot->_event_handler_id);
1075 knot->_event_handler_id = 0;
1077 g_signal_connect(G_OBJECT(knot->item), "event",
1078 G_CALLBACK(cc_generic_knot_handler), knot);
1080 knot->setPosition(item->avoidRef->getConnectionPointPos() * desktop->doc2dt(), 0);
1081 knot->show();
1082 this->knots[knot] = 1;
1180 SPKnot *knot = new SPKnot(this->desktop,
1183 knot->setShape(SP_KNOT_SHAPE_SQUARE);
1184 knot->setSize(7);
1185 knot->setAnchor(SP_ANCHOR_CENTER);
1186 knot->setFill(0xffffff00, 0xff0000ff, 0xff0000ff);
1187 knot->setStroke(0x000000ff, 0x000000ff, 0x000000ff);
1188 knot->updateCtrl();
1190 // We don't want to use the standard knot handler,
1191 // since we don't want this knot to be draggable.
1192 g_signal_handler_disconnect(G_OBJECT(knot->item),
1193 knot->_event_handler_id);
1195 knot->_event_handler_id = 0;
1197 g_signal_connect(G_OBJECT(knot->item), "event",
1198 G_CALLBACK(cc_generic_knot_handler), knot);
1200 this->endpt_handle[i] = knot;
1246 SPKnot *knot = new SPKnot(cc->desktop, 0);
1248 // We do not process events on this knot.
1249 g_signal_handler_disconnect(G_OBJECT(knot->item),
1250 knot->_event_handler_id);
1252 knot->_event_handler_id = 0;
1254 cc_select_handle( knot );
1255 cc->selected_handle = knot;