PaintLinearGradientFunc


Description:

[ CCode ( cname = "hb_paint_linear_gradient_func_t" , instance_pos = 9.9 ) ]
[ Version ( since = "7.0.0" ) ]
public delegate void PaintLinearGradientFunc (PaintFuncs funcs, void* paint_data, ColorLine color_line, float x0, float y0, float x1, float y1, float x2, float y2)

A virtual method for the PaintFuncs 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.

See the OpenType spec COLR section for details on how the points define the direction of the gradient, and how to interpret the color_line.

Parameters:

funcs

paint functions object

paint_data

The data accompanying the paint functions in paint_glyph

color_line

Color information for the gradient

x0

X coordinate of the first point

y0

Y coordinate of the first point

x1

X coordinate of the second point

y1

Y coordinate of the second point

x2

X coordinate of the third point

y2

Y coordinate of the third point

user_data

User data pointer passed to set_linear_gradient_func


Namespace: HarfBuzz