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

static void sp_pen_context_init ( SPPenContext pc ) [static]

Callback to initialize SPPenContext object.

Definition at line 133 of file pen-context.cpp.

References SPEventContext::hot_y, and SPPenContext::npoints.

Referenced by sp_pen_context_get_type().

{

    SPEventContext *event_context = SP_EVENT_CONTEXT(pc);

    event_context->cursor_shape = cursor_pen_xpm;
    event_context->hot_x = 4;
    event_context->hot_y = 4;

    pc->npoints = 0;
    pc->mode = SP_PEN_CONTEXT_MODE_CLICK;
    pc->state = SP_PEN_CONTEXT_POINT;

    pc->c0 = NULL;
    pc->c1 = NULL;
    pc->cl0 = NULL;
    pc->cl1 = NULL;

    pc->events_disabled = 0;

    pc->num_clicks = 0;
    pc->waiting_LPE = NULL;
    pc->waiting_item = NULL;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index