Attribute

The pango.attribute.Attribute structure represents the common portions of all attributes.

Particular types of attributes include this structure as their initial portion. The common portion of the attribute holds the range to which the value in the type-specific part of the attribute applies and should be initialized using pango.attribute.Attribute.init_. By default, an attribute will have an all-inclusive range of [0,G_MAXUINT].

Members

Functions

asColor
pango.attr_color.AttrColor asColor()

Returns the attribute cast to pango.attr_color.AttrColor.

asFloat
pango.attr_float.AttrFloat asFloat()

Returns the attribute cast to pango.attr_float.AttrFloat.

asFontDesc
pango.attr_font_desc.AttrFontDesc asFontDesc()

Returns the attribute cast to pango.attr_font_desc.AttrFontDesc.

asFontFeatures
pango.attr_font_features.AttrFontFeatures asFontFeatures()

Returns the attribute cast to pango.attr_font_features.AttrFontFeatures.

asInt
pango.attr_int.AttrInt asInt()

Returns the attribute cast to pango.attr_int.AttrInt.

asLanguage
pango.attr_language.AttrLanguage asLanguage()

Returns the attribute cast to pango.attr_language.AttrLanguage.

asShape
pango.attr_shape.AttrShape asShape()

Returns the attribute cast to pango.attr_shape.AttrShape.

asSize
pango.attr_size.AttrSize asSize()

Returns the attribute cast to pango.attr_size.AttrSize.

asString
pango.attr_string.AttrString asString()

Returns the attribute cast to pango.attr_string.AttrString.

copy
pango.attribute.Attribute copy()

Make a copy of an attribute.

destroy
void destroy()

Destroy a pango.attribute.Attribute and free all associated memory.

equal
bool equal(pango.attribute.Attribute attr2)

Compare two attributes for equality.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.