Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_canvas_item_hide ( SPCanvasItem item  ) 

Clears visible flag on item and requests a redraw.

Definition at line 465 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(), sp_knot_set_flag(), sp_node_update_handle(), and sp_pen_context_setup().

    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