Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_canvas_group_render ( SPCanvasItem item,
SPCanvasBuf buf 
) [static]

Renders all visible canvas group items in buf rectangle.

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

References SPCanvasGroup::items, SPCanvasBuf::rect, SPCanvasItem::x1, SPCanvasItem::x2, SPCanvasItem::y1, and SPCanvasItem::y2.

Referenced by sp_canvas_group_class_init().

{
    SPCanvasGroup const *group = SP_CANVAS_GROUP (item);

    for (GList *list = group->items; list; list = list->next) {
        SPCanvasItem *child = (SPCanvasItem *)list->data;
        if (child->flags & SP_CANVAS_ITEM_VISIBLE) {
            if ((child->x1 < buf->rect.x1) &&
                (child->y1 < buf->rect.y1) &&
                (child->x2 > buf->rect.x0) &&
                (child->y2 > buf->rect.y0)) {
                if (SP_CANVAS_ITEM_GET_CLASS (child)->render)
                    SP_CANVAS_ITEM_GET_CLASS (child)->render (child, buf);
            }
        }
    }
}


Generated by  Doxygen 1.6.0   Back to index