Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_canvas_item_affine_absolute ( SPCanvasItem item,
NR::Matrix const &  affine 
)

Makes the item's affine transformation matrix be equal to the specified matrix.

: A canvas item. : An affine transformation matrix.

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

References SPCanvasItem::canvas, SPCanvas::need_repick, SPCanvasItem::parent, sp_canvas_item_request_update(), sp_canvas_request_update(), and SPCanvasItem::xform.

Referenced by SPSVGView::doRescale(), SPDesktop::init(), and SPDesktop::set_display_area().

{
    item->xform = affine;

    if (!(item->flags & SP_CANVAS_ITEM_NEED_AFFINE)) {
        item->flags |= SP_CANVAS_ITEM_NEED_AFFINE;
        if (item->parent != NULL) {
            sp_canvas_item_request_update (item->parent);
        } else {
            sp_canvas_request_update (item->canvas);
        }
    }

    item->canvas->need_repick = TRUE;
}


Generated by  Doxygen 1.6.0   Back to index