Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2008-12-03 12:06:30 +0300
committerJoshua Leung <aligorith@gmail.com>2008-12-03 12:06:30 +0300
commit92cbb4b033ee236aafefbf22b2e2adfb363d36b1 (patch)
treeda99506e89f1a69ee174e93e0fb7991723b88cab /source/blender/editors/include/UI_view2d.h
parent8f1847e4c33f4276c6aaf123e658f9d2043f7dcb (diff)
View2D - assorted wip changes (nothing to see here)
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-rw-r--r--source/blender/editors/include/UI_view2d.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h
index 3e80b77cd29..cd2345bf247 100644
--- a/source/blender/editors/include/UI_view2d.h
+++ b/source/blender/editors/include/UI_view2d.h
@@ -38,11 +38,14 @@
/* generic value to use when coordinate lies out of view when converting */
#define V2D_IS_CLIPPED 12000
-/* --- Grids --- */
/* grid-units (for drawing time) */
#define V2D_UNIT_SECONDS 0
#define V2D_UNIT_FRAMES 1
+/* grid-units (for drawing values) */
+#define V2D_UNIT_VALUES 2
+#define V2D_UNIT_DEGREES 3
+
/* clamping of grid values to whole numbers */
#define V2D_GRID_CLAMP 0
#define V2D_GRID_NOCLAMP 1
@@ -53,7 +56,6 @@
#define V2D_HORIZONTAL_AXIS (1<<2)
#define V2D_VERTICAL_AXIS (1<<3)
-/* --- Scrollers --- */
/* ------------------------------------------ */
/* Macros: */
@@ -92,7 +94,7 @@ void UI_view2d_draw_grid(const struct bContext *C, struct View2D *v2d, View2DGri
void UI_view2d_free_grid(View2DGrid *grid);
/* scrollbar drawing */
-View2DScrollers *UI_view2d_calc_scrollers(const struct bContext *C, struct View2D *v2d, short units, short clamp);
+View2DScrollers *UI_view2d_calc_scrollers(const struct bContext *C, struct View2D *v2d, short xunits, short xclamp, short yunits, short yclamp);
void UI_view2d_draw_scrollers(const struct bContext *C, struct View2D *v2d, View2DScrollers *scrollers, int flag);
void UI_view2d_free_scrollers(View2DScrollers *scrollers);