This is a continuation of D4681, where I separated the
e.g. frame number drawing from scrollers internally.
This patch changes the API, so that space draw handlers
have to draw these numbers explicitely.
This greatly simplifies the scrollers API for all spaces
that just need scrollers without any frame numbers.
Individual refactoring commits:
- temporary utility parameters to disable number drawing in scroller
- new number drawing in space_action
- move all view2d number drawing out of scrollers
- remove previously created temporary function
- remove unused context parameter from scroller draw function
- scrollers don't need grid and unit information anymore
- use scrollbar area from view2d
- bring back scale indicators in clip graph editor
- bring back frame numbers in clip dopesheet
- remove invalidated comment
- improved alignment
This refactoring is necessary for D4654.
A next refactoring step could be to splitup View2DGrid, because
e.g. the grid in the node editor is conceptually very different
from the grid in the timeline.
Trying to squeeze everything through the same functions,
complicates the code quite a bit.