~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/display/sp-canvas.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:
36
36
#include <glibmm/ustring.h>
37
37
 
38
38
#include <libnr/nr-matrix.h>
39
 
#include <libnr/nr-rect.h>
40
39
#include <libnr/nr-rect-l.h>
41
40
 
 
41
#include <2geom/rect.h>
 
42
 
42
43
G_BEGIN_DECLS
43
44
 
44
45
struct SPCanvas;
75
76
 
76
77
    double x1, y1, x2, y2;
77
78
    NR::Rect bounds;
78
 
    NR::Matrix xform;
 
79
    Geom::Matrix xform;
79
80
};
80
81
 
81
82
/**
82
83
 * The vtable of an SPCanvasItem.
83
84
 */
84
85
struct _SPCanvasItemClass : public GtkObjectClass {
85
 
    void (* update) (SPCanvasItem *item, NR::Matrix const &affine, unsigned int flags);
 
86
    void (* update) (SPCanvasItem *item, Geom::Matrix const &affine, unsigned int flags);
86
87
 
87
88
    void (* render) (SPCanvasItem *item, SPCanvasBuf *buf);
88
 
    double (* point) (SPCanvasItem *item, NR::Point p, SPCanvasItem **actual_item);
 
89
    double (* point) (SPCanvasItem *item, Geom::Point p, SPCanvasItem **actual_item);
89
90
 
90
91
    int (* event) (SPCanvasItem *item, GdkEvent *event);
91
92
};
96
97
 
97
98
#define sp_canvas_item_set gtk_object_set
98
99
 
99
 
void sp_canvas_item_affine_absolute(SPCanvasItem *item, NR::Matrix const &aff);
 
100
void sp_canvas_item_affine_absolute(SPCanvasItem *item, Geom::Matrix const &aff);
100
101
 
101
102
void sp_canvas_item_raise(SPCanvasItem *item, int positions);
102
103
void sp_canvas_item_lower(SPCanvasItem *item, int positions);
105
106
int sp_canvas_item_grab(SPCanvasItem *item, unsigned int event_mask, GdkCursor *cursor, guint32 etime);
106
107
void sp_canvas_item_ungrab(SPCanvasItem *item, guint32 etime);
107
108
 
108
 
NR::Matrix sp_canvas_item_i2w_affine(SPCanvasItem const *item);
 
109
Geom::Matrix sp_canvas_item_i2w_affine(SPCanvasItem const *item);
109
110
 
110
111
void sp_canvas_item_grab_focus(SPCanvasItem *item);
111
112
 
190
191
 
191
192
    bool is_scrolling;
192
193
 
193
 
    NR::Rect getViewbox() const;
 
194
    Geom::Rect getViewbox() const;
194
195
    NR::IRect getViewboxIntegers() const;
195
196
};
196
197