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)

Creates a new shape attribute.

Like [[email protected]], 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 data when the attribute is copied. If null, data is simply copied as a pointer

destroy_func

function to free data when the attribute is freed

Returns:

the newly allocated `PangoAttribute`, which should be freed with [[email protected]]




2022 vala-language.org