hb_paint_linear_gradient_func_t typedef
hb_paint_linear_gradient_func_t: @funcs: paint functions object @paint_data: The data accompanying the paint functions in hb_font_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 hb_paint_funcs_set_linear_gradient_func()
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.
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.
Since: 7.0.0
Implementation
typedef hb_paint_linear_gradient_func_t =
ffi.Pointer<ffi.NativeFunction<hb_paint_linear_gradient_func_tFunction>>;