Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

void sp_knot_set_position ( SPKnot knot,
Geom::Point const &  p,
guint  state 

Move knot to new position.

Definition at line 564 of file knot.cpp.

References SPKnot::_moved_signal, SPKnot::item, and SPKnot::pos.

Referenced by node_handle_ungrabbed(), sp_knot_request_position(), sp_node_update_handle(), sp_node_update_handles(), and sp_nodepath_node_new().

    g_return_if_fail(knot != NULL);
    g_return_if_fail(SP_IS_KNOT (knot));

    knot->pos = p;

    if (knot->item) {
        SP_CTRL(knot->item)->moveto (p);

                  knot_signals[MOVED], 0,
    knot->_moved_signal.emit(knot, p, state);

Generated by  Doxygen 1.6.0   Back to index