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/editors/include/UI_view2d.h')
-rw-r--r--source/blender/editors/include/UI_view2d.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h
index 436f268d1bf..469388219d6 100644
--- a/source/blender/editors/include/UI_view2d.h
+++ b/source/blender/editors/include/UI_view2d.h
@@ -35,12 +35,12 @@
#define __UI_VIEW2D_H__
/* ------------------------------------------ */
-/* Settings and Defines: */
+/* Settings and Defines: */
/* ---- General Defines ---- */
/* generic value to use when coordinate lies out of view when converting */
-#define V2D_IS_CLIPPED 12000
+#define V2D_IS_CLIPPED 12000
/* Common View2D view types
* NOTE: only define a type here if it completely sets all (+/- a few) of the relevant flags
@@ -48,24 +48,24 @@
* than one specific place
*/
enum {
- /* custom view type (region has defined all necessary flags already) */
+ /* custom view type (region has defined all necessary flags already) */
V2D_COMMONVIEW_CUSTOM = -1,
- /* standard (only use this when setting up a new view, as a sensible base for most settings) */
+ /* standard (only use this when setting up a new view, as a sensible base for most settings) */
V2D_COMMONVIEW_STANDARD,
- /* listview (i.e. Outliner) */
+ /* listview (i.e. Outliner) */
V2D_COMMONVIEW_LIST,
- /* stackview (this is basically a list where new items are added at the top) */
+ /* stackview (this is basically a list where new items are added at the top) */
V2D_COMMONVIEW_STACK,
- /* headers (this is basically the same as listview, but no y-panning) */
+ /* headers (this is basically the same as listview, but no y-panning) */
V2D_COMMONVIEW_HEADER,
- /* ui region containing panels */
+ /* ui region containing panels */
V2D_COMMONVIEW_PANELS_UI
} eView2D_CommonViewTypes;
/* ---- Defines for Scroller/Grid Arguments ----- */
/* 'dummy' argument to pass when argument is irrelevant */
-#define V2D_ARG_DUMMY -1
+#define V2D_ARG_DUMMY -1
/* Grid units */
enum {
@@ -89,31 +89,31 @@ enum {
/* flags for grid-lines to draw */
enum {
- V2D_HORIZONTAL_LINES = (1<<0),
- V2D_VERTICAL_LINES = (1<<1),
- V2D_HORIZONTAL_AXIS = (1<<2),
- V2D_VERTICAL_AXIS = (1<<3),
- V2D_HORIZONTAL_FINELINES = (1<<4),
+ V2D_HORIZONTAL_LINES = (1 << 0),
+ V2D_VERTICAL_LINES = (1 << 1),
+ V2D_HORIZONTAL_AXIS = (1 << 2),
+ V2D_VERTICAL_AXIS = (1 << 3),
+ V2D_HORIZONTAL_FINELINES = (1 << 4),
- V2D_GRIDLINES_MAJOR = (V2D_VERTICAL_LINES|V2D_VERTICAL_AXIS|V2D_HORIZONTAL_LINES|V2D_HORIZONTAL_AXIS),
- V2D_GRIDLINES_ALL = (V2D_GRIDLINES_MAJOR|V2D_HORIZONTAL_FINELINES),
+ V2D_GRIDLINES_MAJOR = (V2D_VERTICAL_LINES | V2D_VERTICAL_AXIS | V2D_HORIZONTAL_LINES | V2D_HORIZONTAL_AXIS),
+ V2D_GRIDLINES_ALL = (V2D_GRIDLINES_MAJOR | V2D_HORIZONTAL_FINELINES),
} eView2D_Gridlines;
/* ------ Defines for Scrollers ----- */
/* scroller area */
-#define V2D_SCROLL_HEIGHT 17
-#define V2D_SCROLL_WIDTH 17
+#define V2D_SCROLL_HEIGHT 17
+#define V2D_SCROLL_WIDTH 17
/* scroller 'handles' hotspot radius for mouse */
-#define V2D_SCROLLER_HANDLE_SIZE 12
+#define V2D_SCROLLER_HANDLE_SIZE 12
/* ------ Define for UI_view2d_sync ----- */
/* means copy it from another v2d */
-#define V2D_LOCK_SET 0
+#define V2D_LOCK_SET 0
/* means copy it to the other v2ds */
-#define V2D_LOCK_COPY 1
+#define V2D_LOCK_COPY 1
/* ------------------------------------------ */
@@ -124,7 +124,7 @@ enum {
#define IN_2D_HORIZ_SCROLL(v2d, co) (BLI_in_rcti(&v2d->hor, co[0], co[1]))
/* ------------------------------------------ */
-/* Type definitions: */
+/* Type definitions: */
struct View2D;
struct View2DGrid;
@@ -141,7 +141,7 @@ typedef struct View2DGrid View2DGrid;
typedef struct View2DScrollers View2DScrollers;
/* ----------------------------------------- */
-/* Prototypes: */
+/* Prototypes: */
/* refresh and validation (of view rects) */
void UI_view2d_region_reinit(struct View2D *v2d, short type, int winx, int winy);