Lines Matching defs:grid
2 * Cartesian grid implementation.
24 # include <gtkmm/grid.h>
38 #include "display/canvas-grid.h"
60 N_("Rectangular grid"),
61 N_("Axonometric grid")
89 griditem->grid = NULL;
108 if ( gridcanvasitem->grid && gridcanvasitem->grid->isVisible() ) {
110 gridcanvasitem->grid->Render(buf);
122 if (gridcanvasitem->grid) {
123 gridcanvasitem->grid->Update(affine, flags);
208 for (t = GRID_MAXTYPENR; t >= 0; t--) { //this automatically defaults to grid0 which is rectangular grid
220 for (t = GRID_MAXTYPENR; t >= 0; t--) { //this automatically defaults to grid0 which is rectangular grid
228 * writes an <inkscape:grid> child to repr.
240 newnode = xml_doc->createElement("inkscape:grid");
246 DocumentUndo::done(doc, SP_VERB_DIALOG_NAMEDVIEW, _("Create new grid"));
273 * creates a new grid canvasitem for the SPDesktop given as parameter. Keeps a link to this canvasitem in the canvasitems list.
282 // check if there is already a canvasitem on this desktop linking to this grid
290 item->grid = this;
313 _("Determines whether to snap to this grid or not. Can be 'on' for invisible grids."),
318 _("When zoomed out, not all grid lines will be displayed. Only the visible ones will be snapped to"),
323 _("Determines whether the grid is displayed or not. Objects are still snapped to invisible grids."),
560 // Legacy grid not in 'user units'
573 // Legacy grid not in 'user units'
591 // Legacy grid not in 'user units'
610 // Legacy grid not in 'user units'
659 gridunit = unit_table.getUnit(value); // Display unit identifier in grid menu
699 _("_Origin X:"), _("X coordinate of grid origin"), "originx",
702 _("O_rigin Y:"), _("Y coordinate of grid origin"), "originy",
705 _("Spacing _X:"), _("Distance between vertical grid lines"), "spacingx",
708 _("Spacing _Y:"), _("Distance between horizontal grid lines"), "spacingy",
713 _("Minor grid line _color:"), _("Minor grid line color"), _("Color of the minor grid lines"),
718 _("Ma_jor grid line color:"), _("Major grid line color"),
719 _("Color of the major (highlighted) grid lines"), "empcolor", "empopacity",
723 _("_Major grid line every:"), "", _("lines"), "empspacing", _wr, repr, doc) );
909 // no_emphasize_when_zoomedout determines color (minor or major) when only major grid lines/dots shown.
925 // Line grid
948 // Dotted grid
996 CanvasXYGridSnapper::CanvasXYGridSnapper(CanvasXYGrid *grid, SnapManager *sm, Geom::Coord const d) : LineSnapper(sm, d)
998 this->grid = grid;
1021 if ( grid == NULL ) {
1030 // Only snapping to visible grid lines
1031 spacing = grid->sw[i]; // this is the spacing of the visible grid lines measured in screen pixels
1039 // Snapping to any grid line, whether it's visible or not
1040 spacing = grid->spacing[i];
1048 rounded = Inkscape::Util::round_to_upper_multiple_plus(p[i], spacing, grid->origin[i]);
1052 rounded = Inkscape::Util::round_to_lower_multiple_plus(p[i], spacing, grid->origin[i]);