2.5 - Assorted View2D related fixes
[blender-staging.git] / source / blender / editors / include / UI_view2d.h
index 6f379ec3f7bc8a8e4f8e8bbcffe2381370143216..04537ed69b19d3456205813aeba7ff2805350e7f 100644 (file)
 
 
 /* flags for grid-lines to draw */
-#define V2D_HORIZONTAL_LINES   (1<<0)
-#define V2D_VERTICAL_LINES             (1<<1)
-#define V2D_HORIZONTAL_AXIS            (1<<2)
-#define V2D_VERTICAL_AXIS              (1<<3)
+#define V2D_HORIZONTAL_LINES           (1<<0)
+#define V2D_VERTICAL_LINES                     (1<<1)
+#define V2D_HORIZONTAL_AXIS                    (1<<2)
+#define V2D_VERTICAL_AXIS                      (1<<3)
+#define V2D_HORIZONTAL_FINELINES       (1<<4)
+
+#define V2D_GRIDLINES_MAJOR                    (V2D_VERTICAL_LINES|V2D_VERTICAL_AXIS|V2D_HORIZONTAL_LINES|V2D_HORIZONTAL_AXIS)
+#define V2D_GRIDLINES_ALL                      (V2D_GRIDLINES_MAJOR|V2D_HORIZONTAL_FINELINES)
 
 
 /* ------------------------------------------ */