~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/display/canvas-grid.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:
81
81
 
82
82
    GridCanvasItem * createCanvasItem(SPDesktop * desktop);
83
83
 
84
 
    virtual void Update (NR::Matrix const &affine, unsigned int flags) = 0;
 
84
    virtual void Update (Geom::Matrix const &affine, unsigned int flags) = 0;
85
85
    virtual void Render (SPCanvasBuf *buf) = 0;
86
86
 
87
87
    virtual void readRepr() = 0;
89
89
 
90
90
    Gtk::Widget * newWidget();
91
91
 
92
 
    NR::Point origin;     /**< Origin of the grid */
 
92
    Geom::Point origin;     /**< Origin of the grid */
93
93
    guint32 color;        /**< Color for normal lines */
94
94
    guint32 empcolor;     /**< Color for emphasis lines */
95
95
    gint empspacing;      /**< Spacing between emphasis lines */
131
131
    CanvasXYGrid(SPNamedView * nv, Inkscape::XML::Node * in_repr, SPDocument * in_doc);
132
132
    virtual ~CanvasXYGrid();
133
133
 
134
 
    void Update (NR::Matrix const &affine, unsigned int flags);
 
134
    void Update (Geom::Matrix const &affine, unsigned int flags);
135
135
    void Render (SPCanvasBuf *buf);
136
136
 
137
137
    void readRepr();
138
138
    void onReprAttrChanged (Inkscape::XML::Node * repr, const gchar *key, const gchar *oldval, const gchar *newval, bool is_interactive);
139
139
 
140
 
    NR::Point spacing; /**< Spacing between elements of the grid */
 
140
    Geom::Point spacing; /**< Spacing between elements of the grid */
141
141
    bool scaled[2];    /**< Whether the grid is in scaled mode, which can
142
142
                            be different in the X or Y direction, hense two
143
143
                            variables */
144
 
    NR::Point ow;      /**< Transformed origin by the affine for the zoom */
145
 
    NR::Point sw;      /**< Transformed spacing by the affine for the zoom */
 
144
    Geom::Point ow;      /**< Transformed origin by the affine for the zoom */
 
145
    Geom::Point sw;      /**< Transformed spacing by the affine for the zoom */
146
146
 
147
147
protected:
148
148
    virtual Gtk::Widget * newSpecificWidget();