From bbb89e62aa5f876dc0b9348f11ce6a24ab032e47 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 23 Dec 2022 13:30:26 -0500 Subject: [PATCH] [paint] Document color lines as transient Just so people don't get ideas. --- src/hb-paint.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/hb-paint.h b/src/hb-paint.h index 673b9723f..a76d5392b 100644 --- a/src/hb-paint.h +++ b/src/hb-paint.h @@ -386,6 +386,9 @@ hb_color_line_get_extend (hb_color_line_t *color_line); * A virtual method for the #hb_paint_funcs_t to paint a linear * gradient everywhere within the current clip. * + * The @color_line object contains information about the colors of the gradients. + * It is only valid for the duration of the callback, you cannot keep it around. + * * The coordinates of the points are interpreted according * to the current transform. * @@ -419,6 +422,9 @@ typedef void (*hb_paint_linear_gradient_func_t) (hb_paint_funcs_t *funcs, * A virtual method for the #hb_paint_funcs_t to paint a radial * gradient everywhere within the current clip. * + * The @color_line object contains information about the colors of the gradients. + * It is only valid for the duration of the callback, you cannot keep it around. + * * The coordinates of the points are interpreted according * to the current transform. * @@ -449,6 +455,9 @@ typedef void (*hb_paint_radial_gradient_func_t) (hb_paint_funcs_t *funcs, * A virtual method for the #hb_paint_funcs_t to paint a sweep * gradient everywhere within the current clip. * + * The @color_line object contains information about the colors of the gradients. + * It is only valid for the duration of the callback, you cannot keep it around. + * * The coordinates of the points are interpreted according * to the current transform. *