PgAttribute.shapeNewWithData

Like pango_attr_shape_new(), but a user data pointer is also provided; this pointer can be accessed when later rendering the glyph. Since 1.8

Parameters

inkRect PangoRectangle*

ink rectangle to assign to each character

logicalRect PangoRectangle*

logical rectangle to assign to each character

data void*

user data pointer

copyFunc PangoAttrDataCopyFunc

function to copy data when the attribute is copied. If NULL, data is simply copied as a pointer. [allow-none]

destroyFunc GDestroyNotify

function to free data when the attribute is freed, or NULL. [allow-none]

Return Value

the newly allocated PangoAttribute, which should be freed with pango_attribute_destroy().

Meta