From 5a0896e1a3c7f17abd37e3d818585fde8e80ff6d Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 2 Jul 2009 18:12:46 +0000 Subject: 2.5 Cleanup of scroller drawing in 2D windows. Before: http://download.blender.org/institute/rt11.jpg After: http://download.blender.org/institute/rt12.jpg Will add 'zoom' widget circles later, as mockupped here: http://www.reynish.com/files/blender25/fcurve_scrollbar.png Also note the scale values are inside scroller; drawing it on top conflicts with current frame item and markers. Currently scroller disappear entirely when view is total. For Joshua: To make sliders behave nicely, the boundbox (v2d->tot) has to be refreshed on each change. I've added it in graph drawing now, but it could be notifier based I guess... not sure what the correct anim api call would be. Can discuss tomorrow! On todo: Layout config hints so people can make scroller positions swap. --- source/blender/makesdna/DNA_view2d_types.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/makesdna/DNA_view2d_types.h') diff --git a/source/blender/makesdna/DNA_view2d_types.h b/source/blender/makesdna/DNA_view2d_types.h index ac628ca2266..dd73d691b62 100644 --- a/source/blender/makesdna/DNA_view2d_types.h +++ b/source/blender/makesdna/DNA_view2d_types.h @@ -118,6 +118,10 @@ typedef struct View2D { #define V2D_SCROLL_VERTICAL_HIDE (1<<7) #define V2D_SCROLL_HORIZONTAL_HIDE (1<<8) +/* scroll_ui, activate flag for drawing */ +#define V2D_SCROLL_H_ACTIVE (1<<0) +#define V2D_SCROLL_V_ACTIVE (1<<1) + /* alignment flags for totrect, flags use 'shading-out' convention (v2d->align) */ /* all quadrants free */ #define V2D_ALIGN_FREE 0 -- cgit v1.2.3