canvas-axonomgrid.h revision 7073d105e612f7dc898c292742bee9655d2a51b2
#ifndef CANVAS_AXONOMGRID_H
#define CANVAS_AXONOMGRID_H
/*
* Copyright (C) 2006-2007 Johan Engelen <johan@shouraizou.nl>
*
*/
#include <display/sp-canvas.h>
#include <libnr/nr-coord.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"
#include "canvas-grid.h"
struct SPDesktop;
struct SPNamedView;
void readRepr();
void onReprAttrChanged (Inkscape::XML::Node * repr, const gchar *key, const gchar *oldval, const gchar *newval, bool is_interactive);
double lengthy; /**< The lengths of the primary y-axis */
bool scaled; /**< Whether the grid is in scaled mode */
double lyw; /**< Transformed length y by the affine for the zoom */
double lxw_x;
double lxw_z;
double spacing_ylines;
CanvasAxonomGrid(const CanvasAxonomGrid&);
void updateWidgets();
};
{
void _addSnappedLine(SnappedConstraints &sc, NR::Point const snapped_point, NR::Coord const snapped_distance, NR::Point const normal_to_line, const NR::Point point_on_line) const;
};
}; //namespace Inkscape
#endif