Sets our main struct and passes it to the parent class
Make a copy of an attribute.
Destroy a PangoAttribute and free all associated memory.
Compare two attributes for equality. This compares only the actual value of the two attributes and not the ranges that the attributes apply to.
Initializes attr'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. Since 1.20
the main Gtk struct as a void*
Create a new background color attribute.
Create a new font fallback attribute. If fallback is disabled, characters will only be used from the closest matching font on the system. No fallback will be done to other fonts on the system that might contain the characters in the text. Since 1.4
Create a new font family attribute.
Create a new font description attribute. This attribute allows setting family, style, weight, variant, stretch, and size simultaneously.
Create a new foreground color attribute.
Create a new gravity hint attribute. Since 1.16
Create a new gravity attribute. Since 1.16
Create a new language tag attribute.
Create a new letter-spacing attribute. Since 1.6
After feeding a pango markup parser some data with g_markup_parse_context_parse(), use this function to get the list of pango attributes and text out of the markup. This function will not free context, use g_markup_parse_context_free() to do so. Since 1.31.0
Parses marked-up text (see markup format) to create a plain-text string and an attribute list. If accel_marker is nonzero, the given character will mark the character following it as an accelerator. For example, accel_marker might be an ampersand or underscore. All characters marked as an accelerator will receive a PANGO_UNDERLINE_LOW attribute, and the first character so marked will be returned in accel_char, when calling finish(). Two accel_marker characters following each other produce a single literal accel_marker character. To feed markup to the parser, use g_markup_parse_context_parse() on the returned GMarkupParseContext. When done with feeding markup to the parser, use pango_markup_parser_finish() to get the data out of it, and then use g_markup_parse_context_free() to free it. This function is designed for applications that read pango markup from streams. To simply parse a string containing pango markup, the simpler pango_parse_markup() API is recommended instead. Since 1.31.0
Parses marked-up text (see markup format) to create a plain-text string and an attribute list. If accel_marker is nonzero, the given character will mark the character following it as an accelerator. For example, accel_marker might be an ampersand or underscore. All characters marked as an accelerator will receive a PANGO_UNDERLINE_LOW attribute, and the first character so marked will be returned in accel_char. Two accel_marker characters following each other produce a single literal accel_marker character. To parse a stream of pango markup incrementally, use pango_markup_parser_new(). If any error happens, none of the output arguments are touched except for error.
Create a new baseline displacement attribute.
Create a new font size scale attribute. The base font for the affected text will have its size multiplied by scale_factor.
Create a new shape attribute. A shape is used to impose a particular ink and logical rectangle on the result of shaping a particular glyph. This might be used, for instance, for embedding a picture or a widget inside a PangoLayout.
Like pango_attr_shape_new(), but a user data pointer is also provided; this pointer can be accessed when later rendering the glyph. Since 1.8
Create a new font-size attribute in fractional points.
Create a new font-size attribute in device units. Since 1.8
Create a new font stretch attribute
Create a new strikethrough color attribute. This attribute modifies the color of strikethrough lines. If not set, strikethrough lines will use the foreground color. Since 1.8
Create a new strike-through attribute.
Create a new font slant style attribute.
Fetches the attribute type name passed in when registering the type using pango_attr_type_register(). The returned value is an interned string (see g_intern_string() for what that means) that should not be modified or freed. Since 1.22
Allocate a new attribute type ID. The attribute type name can be accessed later by using pango_attr_type_get_name().
Create a new underline color attribute. This attribute modifies the color of underlines. If not set, underlines will use the foreground color. Since 1.8
Create a new underline-style attribute.
Create a new font variant attribute (normal or small caps)
Create a new font weight attribute.
the main Gtk struct
Attributed text is used in a number of places in Pango. It is used as the input to the itemization process and also when creating a PangoLayout. The data types and functions in this section are used to represent and manipulate sets of attributes applied to a portion of text.