diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-13 05:28:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-13 05:28:43 +0300 |
commit | bba868ebf92fb62a0ce5b19ea284eb720b68e4f7 (patch) | |
tree | a9ff1e1d9cb96ffc11fdbe843f32baa898b7bfa1 /source/blender/editors/include | |
parent | 9879ea8a53adc6e02cbf6e42822539deae3dace4 (diff) |
Cleanup: use const args
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_view2d.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index 8581e5d4a93..cae55473534 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -198,14 +198,14 @@ void UI_view2d_listview_visible_cells(struct View2D *v2d, float columnwidth, flo int *row_min, int *row_max); /* coordinate conversion */ -float UI_view2d_region_to_view_x(struct View2D *v2d, float x); -float UI_view2d_region_to_view_y(struct View2D *v2d, float y); -void UI_view2d_region_to_view(struct View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL(); -void UI_view2d_region_to_view_rctf(struct View2D *v2d, const struct rctf *rect_src, struct rctf *rect_dst) ATTR_NONNULL(); - -float UI_view2d_view_to_region_x(struct View2D *v2d, float x); -float UI_view2d_view_to_region_y(struct View2D *v2d, float y); -bool UI_view2d_view_to_region_clip(struct View2D *v2d, float x, float y, int *r_region_x, int *r_region_y) ATTR_NONNULL(); +float UI_view2d_region_to_view_x(const struct View2D *v2d, float x); +float UI_view2d_region_to_view_y(const struct View2D *v2d, float y); +void UI_view2d_region_to_view(const struct View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL(); +void UI_view2d_region_to_view_rctf(const struct View2D *v2d, const struct rctf *rect_src, struct rctf *rect_dst) ATTR_NONNULL(); + +float UI_view2d_view_to_region_x(const struct View2D *v2d, float x); +float UI_view2d_view_to_region_y(const struct View2D *v2d, float y); +bool UI_view2d_view_to_region_clip(const struct View2D *v2d, float x, float y, int *r_region_x, int *r_region_y) ATTR_NONNULL(); void UI_view2d_view_to_region(struct View2D *v2d, float x, float y, int *r_region_x, int *r_region_y) ATTR_NONNULL(); void UI_view2d_view_to_region_fl(struct View2D *v2d, float x, float y, float *r_region_x, float *r_region_y) ATTR_NONNULL(); |