~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/desktop.h

  • Committer: cilix42
  • Date: 2008-09-18 17:48:42 UTC
  • Revision ID: cilix42@users.sourceforge.net-20080918174842-1ad33a7d7gqhv2hq
Next roud of NR ==> Geom conversion

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <gtk/gtktypeutils.h>
30
30
#include <sigc++/sigc++.h>
31
31
 
32
 
#include "libnr/nr-matrix.h"
33
 
#include "libnr/nr-matrix-fns.h"
34
 
#include "libnr/nr-rect.h"
 
32
#include <2geom/matrix.h>
 
33
 
35
34
#include "ui/view/view.h"
36
35
#include "ui/view/edit-widget-interface.h"
37
36
 
227
226
    SPItem *group_at_point (Geom::Point const p) const;
228
227
    Geom::Point point() const;
229
228
 
230
 
    NR::Rect get_display_area() const;
 
229
    Geom::Rect get_display_area() const;
231
230
    void set_display_area (double x0, double y0, double x1, double y1, double border, bool log = true);
232
 
    void set_display_area(NR::Rect const &a, NR::Coord border, bool log = true);
 
231
    void set_display_area(Geom::Rect const &a, Geom::Coord border, bool log = true);
233
232
    void zoom_absolute (double cx, double cy, double zoom);
234
233
    void zoom_relative (double cx, double cy, double zoom);
235
234
    void zoom_absolute_keep_point (double cx, double cy, double px, double py, double zoom);
236
235
    void zoom_relative_keep_point (double cx, double cy, double zoom);
237
236
    void zoom_relative_keep_point (Geom::Point const &c, double const zoom)
238
237
    {
239
 
            using NR::X;
240
 
            using NR::Y;
241
 
            zoom_relative_keep_point (c[X], c[Y], zoom);
 
238
            zoom_relative_keep_point (c[Geom::X], c[Geom::Y], zoom);
242
239
    }
243
240
 
244
241
    void zoom_page();
246
243
    void zoom_drawing();
247
244
    void zoom_selection();
248
245
    void zoom_grab_focus();
249
 
    double current_zoom() const  { return NR::expansion(_d2w); }
 
246
    double current_zoom() const  { return _d2w.descrim(); }
250
247
    void prev_zoom();
251
248
    void next_zoom();
252
249
 
254
251
    void scroll_world (double dx, double dy, bool is_scrolling = false);
255
252
    void scroll_world (Geom::Point const scroll, bool is_scrolling = false)
256
253
    {
257
 
        using NR::X;
258
 
        using NR::Y;
259
 
        scroll_world(scroll[X], scroll[Y], is_scrolling);
 
254
        scroll_world(scroll[Geom::X], scroll[Geom::Y], is_scrolling);
260
255
    }
261
256
    void scroll_world_in_svg_coords (double dx, double dy, bool is_scrolling = false);
262
257