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

void sp_knot_set_position ( SPKnot knot,
NR::Point p,
guint  state 
)

Move knot to new position.

Definition at line 548 of file knot.cpp.

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

    g_signal_emit(knot,
                  knot_signals[MOVED], 0,
                  p,
                  state);
}


Generated by  Doxygen 1.6.0   Back to index