diff --git a/src/hb-paint.cc b/src/hb-paint.cc index 7ef805376..ac5312148 100644 --- a/src/hb-paint.cc +++ b/src/hb-paint.cc @@ -54,9 +54,9 @@ hb_paint_push_clip_glyph_nil (hb_paint_funcs_t *funcs, void *paint_data, void *user_data) {} static void -hb_paint_push_clip_rect_nil (hb_paint_funcs_t *funcs, void *paint_data, - float xmin, float ymin, float xmax, float ymax, - void *user_data) {} +hb_paint_push_clip_rectangle_nil (hb_paint_funcs_t *funcs, void *paint_data, + float xmin, float ymin, float xmax, float ymax, + void *user_data) {} static void hb_paint_pop_clip_nil (hb_paint_funcs_t *funcs, void *paint_data, @@ -324,10 +324,10 @@ hb_paint_push_clip_glyph (hb_paint_funcs_t *funcs, void *paint_data, } void -hb_paint_push_clip_rect (hb_paint_funcs_t *funcs, void *paint_data, - float xmin, float ymin, float xmax, float ymax) +hb_paint_push_clip_rectangle (hb_paint_funcs_t *funcs, void *paint_data, + float xmin, float ymin, float xmax, float ymax) { - funcs->push_clip_rect (paint_data, xmin, ymin, xmax, ymax); + funcs->push_clip_rectangle (paint_data, xmin, ymin, xmax, ymax); } void diff --git a/src/hb-paint.h b/src/hb-paint.h index ac990a11e..ecedcf829 100644 --- a/src/hb-paint.h +++ b/src/hb-paint.h @@ -153,7 +153,7 @@ typedef void (*hb_paint_push_clip_glyph_func_t) (hb_paint_funcs_t *funcs, void *user_data); /** - * hb_paint_push_clip_rect_func_t: + * hb_paint_push_clip_rectangle_func_t: * @funcs: paint functions object * @paint_data: The data accompanying the paint functions * @xmin: min X for the rectangle @@ -174,11 +174,11 @@ typedef void (*hb_paint_push_clip_glyph_func_t) (hb_paint_funcs_t *funcs, * * Since: REPLACEME */ -typedef void (*hb_paint_push_clip_rect_func_t) (hb_paint_funcs_t *funcs, - void *paint_data, - float xmin, float ymin, - float xmax, float ymax, - void *user_data); +typedef void (*hb_paint_push_clip_rectangle_func_t) (hb_paint_funcs_t *funcs, + void *paint_data, + float xmin, float ymin, + float xmax, float ymax, + void *user_data); /** * hb_paint_pop_clip_func_t: @@ -188,7 +188,7 @@ typedef void (*hb_paint_push_clip_rect_func_t) (hb_paint_funcs_t *funcs, * * A virtual method for the #hb_paint_funcs_t to undo * the effect of a prior call to the #hb_paint_funcs_push_clip_glyph_func_t - * or #hb_paint_funcs_push_clip_rect_func_t vfuncs. + * or #hb_paint_funcs_push_clip_rectangle_func_t vfuncs. * * Since: REPLACEME */ @@ -512,9 +512,9 @@ hb_paint_funcs_set_push_clip_glyph_func (hb_paint_funcs_t *funcs, hb_destroy_func_t destroy); /** - * hb_paint_funcs_set_push_clip_rect_func: + * hb_paint_funcs_set_push_clip_rectangle_func: * @funcs: A paint functions struct - * @func: (closure user_data) (destroy destroy) (scope notified): The push-clip-rect callback + * @func: (closure user_data) (destroy destroy) (scope notified): The push-clip-rectangle callback * @user_data: Data to pass to @func * @destroy: (nullable): Function to call when @user_data is no longer needed * @@ -523,10 +523,10 @@ hb_paint_funcs_set_push_clip_glyph_func (hb_paint_funcs_t *funcs, * Since: REPLACEME */ HB_EXTERN void -hb_paint_funcs_set_push_clip_rect_func (hb_paint_funcs_t *funcs, - hb_paint_push_clip_rect_func_t func, - void *user_data, - hb_destroy_func_t destroy); +hb_paint_funcs_set_push_clip_rectangle_func (hb_paint_funcs_t *funcs, + hb_paint_push_clip_rectangle_func_t func, + void *user_data, + hb_destroy_func_t destroy); /** * hb_paint_funcs_set_pop_clip_func: @@ -678,9 +678,9 @@ hb_paint_push_clip_glyph (hb_paint_funcs_t *funcs, void *paint_data, hb_codepoint_t glyph); HB_EXTERN void -hb_paint_push_clip_rect (hb_paint_funcs_t *funcs, void *paint_data, - float xmin, float ymin, - float xmax, float ymax); +hb_paint_push_clip_rectangle (hb_paint_funcs_t *funcs, void *paint_data, + float xmin, float ymin, + float xmax, float ymax); HB_EXTERN void hb_paint_pop_clip (hb_paint_funcs_t *funcs, void *paint_data); diff --git a/src/hb-paint.hh b/src/hb-paint.hh index 7eaf8592e..c177e9c62 100644 --- a/src/hb-paint.hh +++ b/src/hb-paint.hh @@ -31,7 +31,7 @@ HB_PAINT_FUNC_IMPLEMENT (push_transform) \ HB_PAINT_FUNC_IMPLEMENT (pop_transform) \ HB_PAINT_FUNC_IMPLEMENT (push_clip_glyph) \ - HB_PAINT_FUNC_IMPLEMENT (push_clip_rect) \ + HB_PAINT_FUNC_IMPLEMENT (push_clip_rectangle) \ HB_PAINT_FUNC_IMPLEMENT (pop_clip) \ HB_PAINT_FUNC_IMPLEMENT (color) \ HB_PAINT_FUNC_IMPLEMENT (image) \ @@ -79,11 +79,11 @@ struct hb_paint_funcs_t { func.push_clip_glyph (this, paint_data, glyph, !user_data ? nullptr : user_data->push_clip_glyph); } - void push_clip_rect (void *paint_data, - float xmin, float ymin, float xmax, float ymax) - { func.push_clip_rect (this, paint_data, - xmin, ymin, xmax, ymax, - !user_data ? nullptr : user_data->push_clip_rect); } + void push_clip_rectangle (void *paint_data, + float xmin, float ymin, float xmax, float ymax) + { func.push_clip_rectangle (this, paint_data, + xmin, ymin, xmax, ymax, + !user_data ? nullptr : user_data->push_clip_rectangle); } void pop_clip (void *paint_data) { func.pop_clip (this, paint_data, !user_data ? nullptr : user_data->pop_clip); } diff --git a/util/hb-test.c b/util/hb-test.c index 6708f87ba..c993b499e 100644 --- a/util/hb-test.c +++ b/util/hb-test.c @@ -245,14 +245,14 @@ push_clip_glyph (hb_paint_funcs_t *funcs, } static void -push_clip_rect (hb_paint_funcs_t *funcs, - void *paint_data, - float xmin, float ymin, float xmax, float ymax, - void *user_data) +push_clip_rectangle (hb_paint_funcs_t *funcs, + void *paint_data, + float xmin, float ymin, float xmax, float ymax, + void *user_data) { paint_data_t *data = user_data; - print (data, "start clip rect %f %f %f %f", xmin, ymin, xmax, ymax); + print (data, "start clip rectangle %f %f %f %f", xmin, ymin, xmax, ymax); data->level++; cairo_save (data->cr); @@ -1065,7 +1065,7 @@ int main (int argc, char *argv[]) hb_paint_funcs_set_push_transform_func (funcs, push_transform, &data, NULL); hb_paint_funcs_set_pop_transform_func (funcs, pop_transform, &data, NULL); hb_paint_funcs_set_push_clip_glyph_func (funcs, push_clip_glyph, &data, NULL); - hb_paint_funcs_set_push_clip_rect_func (funcs, push_clip_rect, &data, NULL); + hb_paint_funcs_set_push_clip_rectangle_func (funcs, push_clip_rectangle, &data, NULL); hb_paint_funcs_set_pop_clip_func (funcs, pop_clip, &data, NULL); hb_paint_funcs_set_push_group_func (funcs, push_group, &data, NULL); hb_paint_funcs_set_pop_group_func (funcs, pop_group, &data, NULL);