diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-12-01 03:20:19 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-12-01 03:20:19 +0300 |
commit | 70fd53b469e9cfa06dcabe99afffd565ff943bbd (patch) | |
tree | 82a076db03235a0ec8b5764463e6c2c4e0dd7df6 /source/blender/editors/include/UI_view2d.h | |
parent | 3f0d3e0a50da6920ade941d85d54a7b21e6f1154 (diff) |
View2D - Another WIP commit
* Start of basic scrollbar drawing. This will be improved. Only Outliner shows these for now, as although the Timeline should show them, the old files didn't have them turned on.
* Tidied up the view-panning operator
- Fixed naming convention
- Added user-adjustable properties (deltax, deltay in screenspace)
* Added ctrl-scrollwheel (horizontal) and shift-scrollwheel (vertical) scroll operators. These use the view-panning code too.
Unfortunately, I haven't been able to figure out why the WHEELMOUSEDOWN events don't seem to be triggering the operators!
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-rw-r--r-- | source/blender/editors/include/UI_view2d.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index 1929e29bb4a..d70a8e55f63 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -79,17 +79,19 @@ typedef struct View2DScrollers View2DScrollers; /* Prototypes: */ /* setup */ -void UI_view2d_ortho(const struct bContext *C, struct View2D *v2d); +void UI_view2d_view_ortho(const struct bContext *C, struct View2D *v2d); +void UI_view2d_view_restore(const struct bContext *C); + void UI_view2d_update_size(struct View2D *v2d, int winx, int winy); void UI_view2d_enforce_status(struct View2D *v2d, int winx, int winy); /* grid drawing */ -View2DGrid *UI_view2d_calc_grid(const struct bContext *C, struct View2D *v2d, short unit, short type, int winx, int winy); +View2DGrid *UI_view2d_calc_grid(const struct bContext *C, struct View2D *v2d, short unit, short clamp, int winx, int winy); void UI_view2d_draw_grid(const struct bContext *C, struct View2D *v2d, View2DGrid *grid, int flag); void UI_view2d_free_grid(View2DGrid *grid); /* scrollbar drawing */ - +View2DScrollers *UI_view2d_calc_scrollers(const struct bContext *C, struct View2D *v2d, short units, short clamp); void UI_view2d_draw_scrollers(const struct bContext *C, struct View2D *v2d, View2DScrollers *scrollers, int flag); void UI_view2d_free_scrollbars(View2DScrollers *scrollers); |