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

void SPDesktop::scroll_world ( double  dx,
double  dy,
bool  is_scrolling = false 

Scroll canvas by specific coordinate amount.

Definition at line 1104 of file desktop.cpp.

References Geom::Matrix::descrim(), SPCanvas::getViewbox(), Geom::D2< Interval >::min(), and sp_canvas_scroll_to().

Referenced by scroll_to_show_item(), scroll_world_in_svg_coords(), and sp_event_context_private_root_handler().


    Geom::Rect const viewbox = canvas->getViewbox();

    sp_canvas_scroll_to(canvas, viewbox.min()[Geom::X] - dx, viewbox.min()[Geom::Y] - dy, FALSE, is_scrolling);

    /*  update perspective lines if we are in the 3D box tool (so that infinite ones are shown correctly) */


Generated by  Doxygen 1.6.0   Back to index