diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-12-02 12:43:23 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-12-02 12:43:23 +0300 |
commit | 628d7013e2c0236894d329abfde705d023833092 (patch) | |
tree | 12378e2d5618f02ebef21153618eb376b0c819bb /source/blender/editors/include/UI_view2d.h | |
parent | f8d5883a5bcc7be575b1b9a2ca3ef0bfee9360d5 (diff) |
View2D - Some more tweaks...
* Improved scrollbar drawing a bit more - only cosmetic lines
* Added new view2d view-matrix api method to only use 'cur' coordinates on one axis, for use when drawing markers, etc. that need to be glued to a certain time but stay fixed in space in another dimension. This should improve the sitation for drawing markers
* To aid testing, adding markers now sets the marker to have frame number as it's "name". This will need to be removed later...
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-rw-r--r-- | source/blender/editors/include/UI_view2d.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index 558c6ca435f..3e80b77cd29 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -80,6 +80,7 @@ typedef struct View2DScrollers View2DScrollers; /* setup */ void UI_view2d_view_ortho(const struct bContext *C, struct View2D *v2d); +void UI_view2d_view_orthospecial(const struct bContext *C, struct View2D *v2d, short xaxis); void UI_view2d_view_restore(const struct bContext *C); void UI_view2d_update_size(struct View2D *v2d, int winx, int winy); @@ -101,6 +102,7 @@ void UI_view2d_view_to_region(struct View2D *v2d, float x, float y, short *regio void UI_view2d_to_region_no_clip(struct View2D *v2d, float x, float y, short *regionx, short *region_y); /* utilities */ +struct View2D *UI_view2d_fromcontext(const struct bContext *C); void UI_view2d_getscale(struct View2D *v2d, float *x, float *y); |