New cisco icons, and a fix in element.h
[dia.git] / app / diagrid.h
blob3239d71edeac53a1a66acad0eaba73d993aaf678
1 #ifndef DIA_GRID_H
2 #define DIA_GRID_H
4 typedef struct _DiaGrid DiaGrid;
6 struct _DiaGrid {
7 /* grid line intervals */
8 real width_x, width_y, width_w;
9 /* the interval between visible grid lines */
10 guint visible_x, visible_y;
11 /* the interval between major lines (non-stippled).
12 * if 0, no major lines are drawn (all lines are stippled).
13 * if 1, all lines are solid.
15 guint major_lines;
16 /* True if the grid is dynamically calculated.
17 * When true, width_x and width_y are ignored.
19 gboolean dynamic;
20 /* The color of the grid lines.
22 Color colour;
23 /** True if this grid is a hex grid. */
24 gboolean hex;
25 /** Size of each edge on a hex grid. */
26 real hex_size;
29 #endif /* DIA_GRID_H */