Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_knot_moveto ( SPKnot knot,
NR::Point p 
)

Moves knot without any signal.

Move knot to new position, without emitting a MOVED signal.

Definition at line 565 of file knot.cpp.

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

Referenced by GrDragger::moveThisToDraggable(), sp_node_update_handle(), and sp_node_update_handles().

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


Generated by  Doxygen 1.6.0   Back to index