:right-sidebar: True AttrType =================================================================== .. currentmodule:: gi.repository.Pango .. class:: AttrType :no-contents-entry: The ``PangoAttrType`` distinguishes between different types of attributes. Along with the predefined values, it is possible to allocate additional values for custom attributes using :obj:`~gi.repository.AttrType.register`\. The predefined values are given below. The type of structure used to store the attribute is listed in parentheses after the description. Methods ------- .. rst-class:: interim-class .. class:: AttrType :no-index: .. method:: get_name() -> str | None Fetches the attribute type name. The attribute type name is the string passed in when registering the type using :obj:`~gi.repository.Pango.AttrType.register`\. The returned value is an interned string (see :func:`~gi.repository.GLib.intern_string` for what that means) that should not be modified or freed. .. versionadded:: 1.22 .. method:: register() -> ~gi.repository.Pango.AttrType Allocate a new attribute type ID. The attribute type name can be accessed later by using :obj:`~gi.repository.Pango.AttrType.get_name`\. Fields ------ .. rst-class:: interim-class .. class:: AttrType :no-index: .. attribute:: ABSOLUTE_LINE_HEIGHT The type of the None singleton. .. attribute:: ABSOLUTE_SIZE The type of the None singleton. .. attribute:: ALLOW_BREAKS The type of the None singleton. .. attribute:: BACKGROUND The type of the None singleton. .. attribute:: BACKGROUND_ALPHA The type of the None singleton. .. attribute:: BASELINE_SHIFT The type of the None singleton. .. attribute:: FALLBACK The type of the None singleton. .. attribute:: FAMILY The type of the None singleton. .. attribute:: FONT_DESC The type of the None singleton. .. attribute:: FONT_FEATURES The type of the None singleton. .. attribute:: FONT_SCALE The type of the None singleton. .. attribute:: FOREGROUND The type of the None singleton. .. attribute:: FOREGROUND_ALPHA The type of the None singleton. .. attribute:: GRAVITY The type of the None singleton. .. attribute:: GRAVITY_HINT The type of the None singleton. .. attribute:: INSERT_HYPHENS The type of the None singleton. .. attribute:: INVALID The type of the None singleton. .. attribute:: LANGUAGE The type of the None singleton. .. attribute:: LETTER_SPACING The type of the None singleton. .. attribute:: LINE_HEIGHT The type of the None singleton. .. attribute:: OVERLINE The type of the None singleton. .. attribute:: OVERLINE_COLOR The type of the None singleton. .. attribute:: RISE The type of the None singleton. .. attribute:: SCALE The type of the None singleton. .. attribute:: SENTENCE The type of the None singleton. .. attribute:: SHAPE The type of the None singleton. .. attribute:: SHOW The type of the None singleton. .. attribute:: SIZE The type of the None singleton. .. attribute:: STRETCH The type of the None singleton. .. attribute:: STRIKETHROUGH The type of the None singleton. .. attribute:: STRIKETHROUGH_COLOR The type of the None singleton. .. attribute:: STYLE The type of the None singleton. .. attribute:: TEXT_TRANSFORM The type of the None singleton. .. attribute:: UNDERLINE The type of the None singleton. .. attribute:: UNDERLINE_COLOR The type of the None singleton. .. attribute:: VARIANT The type of the None singleton. .. attribute:: WEIGHT The type of the None singleton. .. attribute:: WORD The type of the None singleton.