pango.attribute
Module for [Attribute] class
class Attribute
Types 1
classAttribute : gobject.boxed.Boxed
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].
Methods
uint startIndex() @property nothrowGet `startIndex` field. Returns: the start index of the range (in bytes).void startIndex(uint propval) @property nothrowSet `startIndex` field. Params: propval = the start index of the range (in bytes).uint endIndex() @property nothrowGet `endIndex` field. Returns: end index of the range (in bytes). The character at this index is not included in the range.void endIndex(uint propval) @property nothrowSet `endIndex` field. Params: propval = end index of the range (in bytes). The character at this index is not included in the range.pango.attr_color.AttrColor asColor() nothrowReturns the attribute cast to [pango.attr_color.AttrColor].pango.attr_float.AttrFloat asFloat() nothrowReturns the attribute cast to [pango.attr_float.AttrFloat].pango.attr_font_desc.AttrFontDesc asFontDesc() nothrowReturns the attribute cast to [pango.attr_font_desc.AttrFontDesc].pango.attr_font_features.AttrFontFeatures asFontFeatures() nothrowReturns the attribute cast to [pango.attr_font_features.AttrFontFeatures].pango.attr_language.AttrLanguage asLanguage() nothrowReturns the attribute cast to [pango.attr_language.AttrLanguage].pango.attr_shape.AttrShape asShape() nothrowReturns the attribute cast to [pango.attr_shape.AttrShape].pango.attr_string.AttrString asString() nothrowReturns the attribute cast to [pango.attr_string.AttrString].pango.attribute.Attribute copy() nothrowMake a copy of an attribute. Returns: the newly allocated [pango.attribute.Attribute], which should be freed with [pango.attribute.Attribute.destroy].Constructors
this(uint startIndex = uint.init, uint endIndex = uint.init)Create a `attribute.Attribute` boxed type. Params: startIndex = the start index of the range (in bytes). endIndex = end index of the range (in bytes). The character at this index is not included in...