new_with_data
Description:
[ Version ( since = "1.8" ) ]
public static Attribute new_with_data (Rectangle ink_rect, Rectangle logical_rect, void* data, owned AttrDataCopyFunc? copy_func)
public static Attribute new_with_data (Rectangle ink_rect, Rectangle logical_rect, void* data, owned AttrDataCopyFunc? copy_func)
Creates a new shape attribute.
Like [func@Pango.AttrShape.new], but a user data pointer is also provided; this pointer can be accessed when later rendering the glyph.
Parameters:
ink_rect |
ink rectangle to assign to each character |
logical_rect |
logical rectangle to assign to each character |
data |
user data pointer |
copy_func |
function to copy |
destroy_func |
function to free |
Returns:
the newly allocated `PangoAttribute`, which should be freed with [method@Pango.Attribute.destroy] |