PgAttributeShape.this

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

  1. this(PangoAttrShape* pangoAttrShape, bool ownedRef)
  2. this(PangoRectangle* inkRect, PangoRectangle* logicalRect)
  3. this(PangoRectangle* inkRect, PangoRectangle* logicalRect, void* data, PangoAttrDataCopyFunc copyFunc, GDestroyNotify destroyFunc)

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.

destroyFunc GDestroyNotify

function to free data when the attribute is freed, or NULL

Return Value

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

Throws

ConstructionException GTK+ fails to create the object.

Meta