Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2008-12-31 13:44:00 +0300
committerJoshua Leung <aligorith@gmail.com>2008-12-31 13:44:00 +0300
commit28d0bab8ed913629fc02463156bb8fade7dfe886 (patch)
treeb8c9df0ed9f733c50487ac6a5f70061751ae462e /source/blender/editors/include/UI_view2d.h
parent58c5fd7066a978af61d8287acaa7722e6de2219b (diff)
View2D:
Added methods for easier checking of visiblity/position of items arranged in some regular table format (i.e. columns and/or rows). Last commit from me for 2008!
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-rw-r--r--source/blender/editors/include/UI_view2d.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h
index 8992e71759c..43f11e0ec8e 100644
--- a/source/blender/editors/include/UI_view2d.h
+++ b/source/blender/editors/include/UI_view2d.h
@@ -159,6 +159,10 @@ View2DScrollers *UI_view2d_scrollers_calc(const struct bContext *C, struct View2
void UI_view2d_scrollers_draw(const struct bContext *C, struct View2D *v2d, View2DScrollers *scrollers);
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_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 */
void UI_view2d_region_to_view(struct View2D *v2d, int x, int y, float *viewx, float *viewy);
void UI_view2d_view_to_region(struct View2D *v2d, float x, float y, short *regionx, short *regiony);