diff options
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-rw-r--r-- | source/blender/editors/include/UI_view2d.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index 95514149e90..cb7cf3ee404 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -210,19 +210,21 @@ bool UI_view2d_view_to_region_rcti_clip(struct View2D *v2d, const struct rctf * struct View2D *UI_view2d_fromcontext(const struct bContext *C); struct View2D *UI_view2d_fromcontext_rwin(const struct bContext *C); -void UI_view2d_getscale(struct View2D *v2d, float *x, float *y); -void UI_view2d_getscale_inverse(struct View2D *v2d, float *x, float *y); +void UI_view2d_scale_get(struct View2D *v2d, float *x, float *y); +void UI_view2d_scale_get_inverse(struct View2D *v2d, float *x, float *y); -void UI_view2d_getcenter(struct View2D *v2d, float *x, float *y); -void UI_view2d_setcenter(struct View2D *v2d, float x, float y); +void UI_view2d_center_get(struct View2D *v2d, float *x, float *y); +void UI_view2d_center_set(struct View2D *v2d, float x, float y); void UI_view2d_offset(struct View2D *v2d, float xfac, float yfac); short UI_view2d_mouse_in_scrollers(const struct bContext *C, struct View2D *v2d, int x, int y); /* cached text drawing in v2d, to allow pixel-aligned draw as post process */ -void UI_view2d_text_cache_add(struct View2D *v2d, float x, float y, const char *str, size_t str_len, const char col[4]); -void UI_view2d_text_cache_rectf(struct View2D *v2d, const struct rctf *rect_view, const char *str, size_t str_len, const char col[4]); +void UI_view2d_text_cache_add(struct View2D *v2d, float x, float y, + const char *str, size_t str_len, const char col[4]); +void UI_view2d_text_cache_add_rectf(struct View2D *v2d, const struct rctf *rect_view, + const char *str, size_t str_len, const char col[4]); void UI_view2d_text_cache_draw(struct ARegion *ar); /* operators */ |