Logo Search packages:      
Sourcecode: inkscape version File versions

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

Move knot to new position.

Definition at line 579 of file knot.cpp.

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);
    }

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


Generated by  Doxygen 1.6.0   Back to index