attrGravityNew

Create a new gravity attribute.

Parameters

gravity pango.types.Gravity

the gravity value; should not be pango.types.Gravity.Auto

Return Value

Type: pango.attribute.Attribute

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