Logo Search packages:      
Sourcecode: inkscape version File versions

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

Request or set new position for knot.

Definition at line 537 of file knot.cpp.

References sp_knot_set_position().

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

    gboolean done = FALSE;

    g_signal_emit(knot,
                  knot_signals[REQUEST], 0,
                  &p,
                  state,
                  &done);

    /* If user did not complete, we simply move knot to new position */

    if (!done) {
        sp_knot_set_position (knot, p, state);
    }
}


Generated by  Doxygen 1.6.0   Back to index