Attribute
Object Hierarchy:
Description:
[ CCode ( free_function = "pango_attribute_destroy" , type_id = "pango_attribute_get_type ()" ) ]
[ Compact ]
public class Attribute
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 [method@Pango.Attribute.init]. By
default, an attribute will have an all-inclusive range of [0,g_maxuint].
Content:
Methods:
- public unowned AttrColor? as_color ()
Returns the attribute cast to `PangoAttrColor`.
- public unowned AttrFloat? as_float ()
Returns the attribute cast to `PangoAttrFloat`.
- public unowned AttrFontDesc? as_font_desc ()
Returns the attribute cast to `PangoAttrFontDesc`.
- public unowned AttrFontFeatures? as_font_features ()
Returns the attribute cast to `PangoAttrFontFeatures`.
- public unowned AttrInt? as_int ()
Returns the attribute cast to `PangoAttrInt`.
- public unowned AttrLanguage? as_language ()
Returns the attribute cast to `PangoAttrLanguage`.
- public unowned AttrShape? as_shape ()
Returns the attribute cast to `PangoAttrShape`.
- public unowned AttrSize? as_size ()
Returns the attribute cast to `PangoAttrSize`.
- public unowned AttrString? as_string ()
Returns the attribute cast to `PangoAttrString`.
- public Attribute copy ()
Make a copy of an attribute.
- public void destroy ()
Destroy a `PangoAttribute` and free all associated memory.
- public bool equal (Attribute attr2)
Compare two attributes for equality.
- public void init (AttrClass klass)
Initializes this's klass to
klass, it's start_index to pango_attr_index_from_text_beginning and end_index to
pango_attr_index_to_text_end such that the attribute applies to the entire text by default.
Fields: