diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-04 03:53:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-04 04:05:32 +0300 |
commit | 271ec9ff53e7ace452bba0a0aa6000eb5b7a7307 (patch) | |
tree | 2a292d06fb4d0b461fcd8c2d0a5866ea571e21ea /source/blender/editors/include | |
parent | c13e10a7404ddae1d2ab9dc3d421ad18e8cb01ac (diff) |
Cleanup: rename 2D scroll defines
- Use `V2D_SCROLL_` prefix.
- Use more descriptive names.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_view2d.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index bfdb52a4a5d..137c431e3bf 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -60,17 +60,18 @@ enum eView2D_CommonViewTypes { /* ------ Defines for Scrollers ----- */ -/* scroller area */ +/** Scroll bar area. */ #define V2D_SCROLL_HEIGHT (0.45f * U.widget_unit) #define V2D_SCROLL_WIDTH (0.45f * U.widget_unit) -/* For scrollers with scale handlers */ -#define V2D_SCROLL_HEIGHT_HANDLES (0.6f * U.widget_unit) -#define V2D_SCROLL_WIDTH_HANDLES (0.6f * U.widget_unit) +/** Scroll bars with 'handles' used for scale (zoom). */ +#define V2D_SCROLL_HANDLE_HEIGHT (0.6f * U.widget_unit) +#define V2D_SCROLL_HANDLE_WIDTH (0.6f * U.widget_unit) -/* scroller 'handles' hotspot radius for mouse */ -#define V2D_SCROLLER_HANDLE_SIZE (0.6f * U.widget_unit) +/** Scroll bar with 'handles' hot-spot radius for cursor proximity. */ +#define V2D_SCROLL_HANDLE_SIZE_HOTSPOT (0.6f * U.widget_unit) -#define V2D_MIN_SCROLLER_SIZE (50.0 * UI_DPI_FAC) +/** Don't allow scroll thumb to show below this size (so it's never too small to click on). */ +#define V2D_SCROLL_THUMB_SIZE_MIN (50.0 * UI_DPI_FAC) /* ------ Define for UI_view2d_sync ----- */ |