pango.attribute

Module for [Attribute] class

class Attribute

Types 1

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
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
Attribute self()Returns `this`, for use in `with` statements.
uint startIndex() @propertyGet `startIndex` field. Returns: the start index of the range (in bytes).
void startIndex(uint propval) @propertySet `startIndex` field. Params: propval = the start index of the range (in bytes).
uint endIndex() @propertyGet `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) @propertySet `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()Returns the attribute cast to [pango.attr_color.AttrColor].
pango.attr_float.AttrFloat asFloat()Returns the attribute cast to [pango.attr_float.AttrFloat].
pango.attr_font_desc.AttrFontDesc asFontDesc()Returns the attribute cast to [pango.attrfontdesc.AttrFontDesc].
pango.attr_font_features.AttrFontFeatures asFontFeatures()Returns the attribute cast to [pango.attrfontfeatures.AttrFontFeatures].
pango.attr_int.AttrInt asInt()Returns the attribute cast to [pango.attr_int.AttrInt].
pango.attr_language.AttrLanguage asLanguage()Returns the attribute cast to [pango.attr_language.AttrLanguage].
pango.attr_shape.AttrShape asShape()Returns the attribute cast to [pango.attr_shape.AttrShape].
pango.attr_size.AttrSize asSize()Returns the attribute cast to [pango.attr_size.AttrSize].
pango.attr_string.AttrString asString()Returns the attribute cast to [pango.attr_string.AttrString].
pango.attribute.Attribute copy()Make a copy of an attribute. Returns: the newly allocated [pango.attribute.Attribute], which should be freed with [pango.attribute.Attribute.destroy].
void destroy()Destroy a [pango.attribute.Attribute] and free all associated memory.
bool equal(pango.attribute.Attribute attr2)Compare two attributes for equality.
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...
this(void * ptr, Flag!"Take" take)