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

Geom::Rect SPDesktop::get_display_area (  ) const

Return viewbox dimensions.

Definition at line 813 of file desktop.cpp.

References SPCanvas::getViewbox().

Referenced by isWithinViewport(), Inkscape::UI::Widget::ZoomStatus::on_value_changed(), Inkscape::ZoomVerb::perform(), push_current_zoom(), scroll_to_show_item(), sp_desktop_widget_size_allocate(), sp_file_revert_dialog(), sp_flood_do_flood_fill(), zoom_page_width(), zoom_quick(), and zoom_relative_keep_point().

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

    double const scale = _d2w[0];

    return Geom::Rect(Geom::Point(viewbox.min()[Geom::X] / scale, viewbox.max()[Geom::Y] / -scale),
                      Geom::Point(viewbox.max()[Geom::X] / scale, viewbox.min()[Geom::Y] / -scale));
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index