AttrShape.new_

Create a new shape attribute.

A shape is used to impose a particular ink and logical rectangle on the result of shaping a particular glyph. This might be used, for instance, for embedding a picture or a widget inside a pango.layout.Layout.

Parameters

inkRect pango.types.Rectangle

ink rectangle to assign to each character

logicalRect pango.types.Rectangle

logical rectangle to assign to each character

Return Value

Type: pango.attribute.Attribute

the newly allocated pango.attribute.Attribute, which should be freed with pango.attribute.Attribute.destroy