Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

bool SPDesktop::isWithinViewport ( SPItem item ) const

True if desktop viewport fully contains item's bbox.

Definition at line 545 of file desktop.cpp.

References get_display_area().

    Geom::Rect const viewport = get_display_area();
    Geom::OptRect const bbox = sp_item_bbox_desktop(item);
    if (bbox) {
        return viewport.contains(*bbox);
    } else {
        return true;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index