Logo Search packages:      
Sourcecode: inkscape version File versions

void SPDesktop::scroll_world ( double  dx,
double  dy 
)

Scroll canvas by specific coordinate amount.

Definition at line 898 of file desktop.cpp.

References SPCanvas::getViewbox(), NR::Rect::min(), and sp_canvas_scroll_to().

Referenced by sp_event_context_private_root_handler().

{
    g_assert(_widget);

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

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

    _widget->updateRulers();
    _widget->updateScrollbars(expansion(_d2w));
}


Generated by  Doxygen 1.6.0   Back to index