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:
Diffstat (limited to 'source/blender/makesdna/DNA_view2d_types.h')
-rw-r--r--source/blender/makesdna/DNA_view2d_types.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_view2d_types.h b/source/blender/makesdna/DNA_view2d_types.h
index 0a44b6b8759..683a40a3682 100644
--- a/source/blender/makesdna/DNA_view2d_types.h
+++ b/source/blender/makesdna/DNA_view2d_types.h
@@ -82,5 +82,23 @@ typedef struct View2D {
/* width */
#define SCROLLB 16
+/* scrollbar flags for View2D */
+ /* left scrollbar */
+#define L_SCROLL (1<<0)
+#define R_SCROLL (1<<1)
+#define VERT_SCROLL (L_SCROLL|R_SCROLL)
+ /* horizontal scrollbar */
+#define T_SCROLL (1<<2)
+#define B_SCROLL (1<<3)
+#define HOR_SCROLL (T_SCROLL|B_SCROLL)
+ /* special hacks for outliner hscroll - prevent hanging older versions of Blender */
+#define B_SCROLLO (1<<4)
+#define HOR_SCROLLO (T_SCROLL|B_SCROLLO)
+ /* scale markings */
+#define LGRID_SCROLL (1<<5)
+#define RGRID_SCROLL (1<<6)
+#define BGRID_SCROLL (1<<7)
+#define TGRID_SCROLL (1<<8)
+
#endif