|
|
|
@ -136,6 +136,35 @@ typedef void (*hb_paint_pop_transform_func_t) (hb_paint_funcs_t *funcs, |
|
|
|
|
void *paint_data, |
|
|
|
|
void *user_data); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* hb_paint_color_glyph_func_t: |
|
|
|
|
* @funcs: paint functions object |
|
|
|
|
* @paint_data: The data accompanying the paint functions in hb_font_paint_glyph() |
|
|
|
|
* @glyph: the glyph ID |
|
|
|
|
* @font: the font |
|
|
|
|
* @user_data: User data pointer passed to hb_paint_funcs_set_color_glyph_func() |
|
|
|
|
* |
|
|
|
|
* A virtual method for the #hb_paint_funcs_t to render a color glyph by glyph index. |
|
|
|
|
* |
|
|
|
|
* XXX |
|
|
|
|
* |
|
|
|
|
* The coordinates of the glyph outline are interpreted according |
|
|
|
|
* to the current transform. |
|
|
|
|
* |
|
|
|
|
* This clip is applied in addition to the current clip, |
|
|
|
|
* and remains in effect until a matching call to |
|
|
|
|
* the #hb_paint_funcs_pop_clip_func_t vfunc. |
|
|
|
|
* |
|
|
|
|
* Return value: %true if the glyph was painted, %false otherwise. |
|
|
|
|
* |
|
|
|
|
* XSince: REPLACEME |
|
|
|
|
*/ |
|
|
|
|
typedef hb_bool_t (*hb_paint_color_glyph_func_t) (hb_paint_funcs_t *funcs, |
|
|
|
|
void *paint_data, |
|
|
|
|
hb_codepoint_t glyph, |
|
|
|
|
hb_font_t *font, |
|
|
|
|
void *user_data); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* hb_paint_push_clip_glyph_func_t: |
|
|
|
|
* @funcs: paint functions object |
|
|
|
@ -723,6 +752,23 @@ hb_paint_funcs_set_pop_transform_func (hb_paint_funcs_t *funcs, |
|
|
|
|
void *user_data, |
|
|
|
|
hb_destroy_func_t destroy); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* hb_paint_funcs_set_color_glyph_func: |
|
|
|
|
* @funcs: A paint functions struct |
|
|
|
|
* @func: (closure user_data) (destroy destroy) (scope notified): The color-glyph callback |
|
|
|
|
* @user_data: Data to pass to @func |
|
|
|
|
* @destroy: (nullable): Function to call when @user_data is no longer needed |
|
|
|
|
* |
|
|
|
|
* Sets the color-glyph callback on the paint functions struct. |
|
|
|
|
* |
|
|
|
|
* Since: 7.0.0 |
|
|
|
|
*/ |
|
|
|
|
HB_EXTERN void |
|
|
|
|
hb_paint_funcs_set_color_glyph_func (hb_paint_funcs_t *funcs, |
|
|
|
|
hb_paint_color_glyph_func_t func, |
|
|
|
|
void *user_data, |
|
|
|
|
hb_destroy_func_t destroy); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* hb_paint_funcs_set_push_clip_glyph_func: |
|
|
|
|
* @funcs: A paint functions struct |
|
|
|
@ -922,6 +968,11 @@ hb_paint_push_transform (hb_paint_funcs_t *funcs, void *paint_data, |
|
|
|
|
HB_EXTERN void |
|
|
|
|
hb_paint_pop_transform (hb_paint_funcs_t *funcs, void *paint_data); |
|
|
|
|
|
|
|
|
|
HB_EXTERN hb_bool_t |
|
|
|
|
hb_paint_color_glyph (hb_paint_funcs_t *funcs, void *paint_data, |
|
|
|
|
hb_codepoint_t glyph, |
|
|
|
|
hb_font_t *font); |
|
|
|
|
|
|
|
|
|
HB_EXTERN void |
|
|
|
|
hb_paint_push_clip_glyph (hb_paint_funcs_t *funcs, void *paint_data, |
|
|
|
|
hb_codepoint_t glyph, |
|
|
|
|