Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_canvas_item_show ( SPCanvasItem item  ) 

Sets visible flag on item and requests a redraw.

Definition at line 484 of file sp-canvas.cpp.

Referenced by _namedview_modified(), GrDrag::addLine(), sp_knot_set_flag(), sp_node_update_handle(), and sp_nodepath_generate_helperpath().

{
    g_return_if_fail (item != NULL);
    g_return_if_fail (SP_IS_CANVAS_ITEM (item));

    if (item->flags & SP_CANVAS_ITEM_VISIBLE)
        return;

    item->flags |= SP_CANVAS_ITEM_VISIBLE;

    int x0 = (int)(item->x1);
    int x1 = (int)(item->x2);
    int y0 = (int)(item->y1);
    int y1 = (int)(item->y2);

    if (x0 !=0 || x1 !=0 || y0 !=0 || y1 !=0) {
        sp_canvas_request_redraw (item->canvas, (int)(item->x1), (int)(item->y1), (int)(item->x2 + 1), (int)(item->y2 + 1));
        item->canvas->need_repick = TRUE;
    }
}


Generated by  Doxygen 1.6.0   Back to index