canvas-grid.h revision 0e2443345968200f06649dc87cb2bc20d62cffff
#ifndef INKSCAPE_CANVAS_GRID_H
#define INKSCAPE_CANVAS_GRID_H
/*
* Inkscape::CXYGrid
*
* Generic (and quite unintelligent) grid item for gnome canvas
*
* Copyright (C) Johan Engelen 2006 <johan@shouraizou.nl>
* Copyright (C) Lauris Kaplinski 2000
*
*/
#include <display/sp-canvas.h>
#include <gtkmm.h>
#include "ui/widget/color-picker.h"
#include "ui/widget/scalar-unit.h"
#include "ui/widget/registered-widget.h"
#include "ui/widget/registry.h"
#include "ui/widget/tolerance-slider.h"
#include "xml/node-event-vector.h"
#include "snapper.h"
#include "line-snapper.h"
struct SPDesktop;
struct SPNamedView;
#define INKSCAPE_GRID_CANVASITEM(obj) (GTK_CHECK_CAST ((obj), INKSCAPE_TYPE_GRID_CANVASITEM, GridCanvasItem))
#define INKSCAPE_GRID_CANVASITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), INKSCAPE_TYPE_GRID_CANVASITEM, GridCanvasItem))
#define INKSCAPE_IS_GRID_CANVASITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), INKSCAPE_TYPE_GRID_CANVASITEM))
/** \brief All the variables that are tracked for a grid specific
canvas item. */
};
struct GridCanvasItemClass {
};
/* Standard Gtk function */
GtkType grid_canvasitem_get_type (void);
virtual ~CanvasGrid();
virtual void onReprAttrChanged (Inkscape::XML::Node * repr, const gchar *key, const gchar *oldval, const gchar *newval, bool is_interactive) {};
static void on_repr_attr_changed (Inkscape::XML::Node * repr, const gchar *key, const gchar *oldval, const gchar *newval, bool is_interactive, void * data);
CanvasGrid(const CanvasGrid&);
};
~CanvasXYGrid();
void readRepr();
void onReprAttrChanged (Inkscape::XML::Node * repr, const gchar *key, const gchar *oldval, const gchar *newval, bool is_interactive);
be different in the X or Y direction, hense two
variables */
CanvasXYGrid(const CanvasXYGrid&);
void updateWidgets();
bool render_dotted;
};
{
};
}; /* namespace Inkscape */
#endif