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 447 of file sp-canvas.cpp.

References SPCanvasItem::canvas, SPCanvas::need_repick, sp_canvas_request_redraw(), SPCanvasItem::x1, SPCanvasItem::x2, SPCanvasItem::y1, and SPCanvasItem::y2.

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

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

    if (item->flags & SP_CANVAS_ITEM_VISIBLE)

    item->flags |= SP_CANVAS_ITEM_VISIBLE;

    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