~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/display/canvas-grid.h

  • Committer: JazzyNico
  • Date: 2011-08-29 20:25:30 UTC
  • Revision ID: nicoduf@yahoo.fr-20110829202530-6deuoz11q90usldv
Code refactoring and merging with trunk (revision 10599).

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#include <gtkmm/box.h>
15
15
#include <gtkmm.h>
16
16
 
17
 
#include "display/sp-canvas.h"
 
17
#include "sp-canvas-item.h"
18
18
#include "xml/repr.h"
19
19
#include "ui/widget/color-picker.h"
20
20
#include "ui/widget/scalar-unit.h"
26
26
 
27
27
struct SPDesktop;
28
28
struct SPNamedView;
 
29
struct SPCanvasBuf;
29
30
class SPDocument;
30
31
 
31
32
namespace Inkscape {
38
39
#define GRID_MAXTYPENR 1
39
40
 
40
41
#define INKSCAPE_TYPE_GRID_CANVASITEM            (Inkscape::grid_canvasitem_get_type ())
41
 
#define INKSCAPE_GRID_CANVASITEM(obj)            (GTK_CHECK_CAST ((obj), INKSCAPE_TYPE_GRID_CANVASITEM, GridCanvasItem))
42
 
#define INKSCAPE_GRID_CANVASITEM_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), INKSCAPE_TYPE_GRID_CANVASITEM, GridCanvasItem))
43
 
#define INKSCAPE_IS_GRID_CANVASITEM(obj)         (GTK_CHECK_TYPE ((obj), INKSCAPE_TYPE_GRID_CANVASITEM))
44
 
#define INKSCAPE_IS_GRID_CANVASITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), INKSCAPE_TYPE_GRID_CANVASITEM))
 
42
#define INKSCAPE_GRID_CANVASITEM(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), INKSCAPE_TYPE_GRID_CANVASITEM, GridCanvasItem))
 
43
#define INKSCAPE_GRID_CANVASITEM_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), INKSCAPE_TYPE_GRID_CANVASITEM, GridCanvasItem))
 
44
#define INKSCAPE_IS_GRID_CANVASITEM(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), INKSCAPE_TYPE_GRID_CANVASITEM))
 
45
#define INKSCAPE_IS_GRID_CANVASITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), INKSCAPE_TYPE_GRID_CANVASITEM))
45
46
 
46
47
class CanvasGrid;
47
48
 
56
57
};
57
58
 
58
59
/* Standard Gtk function */
59
 
GtkType grid_canvasitem_get_type (void);
 
60
GType grid_canvasitem_get_type (void);
60
61
 
61
62
 
62
63
 
78
79
 
79
80
    GridCanvasItem * createCanvasItem(SPDesktop * desktop);
80
81
 
81
 
    virtual void Update (Geom::Matrix const &affine, unsigned int flags) = 0;
 
82
    virtual void Update (Geom::Affine const &affine, unsigned int flags) = 0;
82
83
    virtual void Render (SPCanvasBuf *buf) = 0;
83
84
 
84
85
    virtual void readRepr() = 0;
128
129
    CanvasXYGrid(SPNamedView * nv, Inkscape::XML::Node * in_repr, SPDocument * in_doc);
129
130
    virtual ~CanvasXYGrid();
130
131
 
131
 
    void Update (Geom::Matrix const &affine, unsigned int flags);
 
132
    void Update (Geom::Affine const &affine, unsigned int flags);
132
133
    void Render (SPCanvasBuf *buf);
133
134
 
134
135
    void readRepr();