The <PangoAttribute> 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.init. By default, an
attribute will have an all-inclusive range of [0,G_MAXUINT].
klassthe class structure holding information about the type of the attribute
start-indexthe start index of the range (in bytes).
end-indexend index of the range (in bytes). The character at this index is not included in the range.
Returns the attribute cast to <PangoAttrColor>.
This is mainly useful for language bindings.
Passed: a <PangoAttribute>.
A <PangoAttribute> such as foreground
Returned: a <PangoAttrColor>, or #f.
The attribute as <PangoAttrColor>, or #f
if it’s not a color attribute
Returns the attribute cast to <PangoAttrFloat>.
This is mainly useful for language bindings.
Passed: a <PangoAttribute>.
A <PangoAttribute> such as scale
Returned: a <PangoAttrFloat>, or #f.
The attribute as <PangoAttrFloat>, or #f
if it’s not a floating point attribute
Returns the attribute cast to
<PangoAttrFontDesc>.
This is mainly useful for language bindings.
Passed: a <PangoAttribute>.
A <PangoAttribute> representing a font
description
Returned: a <PangoAttrFontDesc>, or
#f.
The attribute as <PangoAttrFontDesc>, or
#f if it’s not a font description attribute
Returns the attribute cast to
<PangoAttrFontFeatures>.
This is mainly useful for language bindings.
Passed: a <PangoAttribute>.
A <PangoAttribute> representing font features
Returned: a <PangoAttrFontFeatures>, or
#f.
The attribute as <PangoAttrFontFeatures>,
or #f if it’s not a font features attribute
Returns the attribute cast to <PangoAttrInt>.
This is mainly useful for language bindings.
Passed: a <PangoAttribute>.
A <PangoAttribute> such as weight
Returned: a <PangoAttrInt>, or #f.
The attribute as <PangoAttrInt>, or #f if
it’s not an integer attribute
Returns the attribute cast to
<PangoAttrLanguage>.
This is mainly useful for language bindings.
Passed: a <PangoAttribute>.
A <PangoAttribute> representing a language
Returned: a <PangoAttrLanguage>, or
#f.
The attribute as <PangoAttrLanguage>, or
#f if it’s not a language attribute
Returns the attribute cast to <PangoAttrSize>.
This is mainly useful for language bindings.
Passed: a <PangoAttribute>.
A <PangoAttribute> representing a size
Returned: a <PangoAttrSize>, or #f.
The attribute as <PangoAttrSize>, or NULL if it’s
not a size attribute
Returns the attribute cast to
<PangoAttrString>.
This is mainly useful for language bindings.
Passed: a <PangoAttribute>.
A <PangoAttribute> such as family
Returned: a <PangoAttrString>, or #f.
The attribute as <PangoAttrString>, or
#f if it’s not a string attribute
Make a copy of an attribute.
Passed: a <PangoAttribute>.
Returned: a <PangoAttribute>.
the newly allocated <PangoAttribute>, which
should be freed with attribute:destroy.
Destroy a <PangoAttribute> and free all
associated memory.
Passed: a <PangoAttribute>.
Compare two attributes for equality.
This compares only the actual value of the two attributes and not the ranges that the attributes apply to.
Passed: a <PangoAttribute>.
Passed: a <PangoAttribute>.
another <PangoAttribute>
Returned: a boolean.
#t if the two attributes have the same value