diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-01-02 03:56:48 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-01-02 03:56:48 +0300 |
commit | e6838f621d4d97e12853d7ad20610595582f50d8 (patch) | |
tree | b0a28191894c5549ced0324f2f064a5e6b0fc061 /source/blender/editors/include/UI_view2d.h | |
parent | c32fbee89610cef2149a9290e4a28bb76224b4ae (diff) |
2.5 - Animation and View2D
* Added back deselect all (and invert all) tools for Animation Channels (i.e. channel list in Action Editor).
* Resolved all MSVC warnings (I came across) in View2d code. Also, added a new API method to get the coordinates (in 'view' space) of a listview 'cell' given the row + column the cell is in.
* Tidied up a few comments here and there
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-rw-r--r-- | source/blender/editors/include/UI_view2d.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index 43f11e0ec8e..fbe81b74425 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -127,6 +127,7 @@ struct wmWindowManager; struct bScreen; struct ScrArea; struct bContext; +struct rctf; typedef struct View2DGrid View2DGrid; typedef struct View2DScrollers View2DScrollers; @@ -160,7 +161,8 @@ void UI_view2d_scrollers_draw(const struct bContext *C, struct View2D *v2d, View void UI_view2d_scrollers_free(View2DScrollers *scrollers); /* list view tools */ -void UI_view2d_listview_get_cell(struct View2D *v2d, short columnwidth, short rowheight, float startx, float starty, float viewx, float viewy, int *column, int *row); +void UI_view2d_listview_cell_to_view(struct View2D *v2d, short columnwidth, short rowheight, float startx, float starty, int column, int row, struct rctf *rect); +void UI_view2d_listview_view_to_cell(struct View2D *v2d, short columnwidth, short rowheight, float startx, float starty, float viewx, float viewy, int *column, int *row); void UI_view2d_listview_visible_cells(struct View2D *v2d, short columnwidth, short rowheight, float startx, float starty, int *column_min, int *column_max, int *row_min, int *row_max); /* coordinate conversion */ |