AttrList

class AttrList(pointer: <Error class: unknown class><<Error class: unknown class>>)

A PangoAttrList represents a list of attributes that apply to a section of text.

The attributes in a PangoAttrList are, in general, allowed to overlap in an arbitrary fashion. However, if the attributes are manipulated only through method@Pango.AttrList.change, the overlap between properties will meet stricter criteria.

Since the PangoAttrList structure is stored as a linear list, it is not suitable for storing attributes for large amounts of text. In general, you should not use a single PangoAttrList for more than one paragraph of text.

Skipped during bindings generation

  • method to_string: C function pango_attr_list_to_string is ignored

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val pangoAttrListPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun change(attr: Attribute)

Insert the given attribute into the PangoAttrList.

Link copied to clipboard
fun copy(): AttrList?

Copy @list and return an identical new list.

Link copied to clipboard
fun equal(otherList: AttrList): Boolean

Checks whether @list and @other_list contain the same attributes and whether those attributes apply to the same ranges.

Link copied to clipboard

Given a PangoAttrList and callback function, removes any elements of @list for which @func returns true and inserts them into a new list.

Link copied to clipboard
fun getAttributes(): <Error class: unknown class>

Gets a list of all attributes in @list.

Link copied to clipboard

Create a iterator initialized to the beginning of the list.

Link copied to clipboard
fun insert(attr: Attribute)

Insert the given attribute into the PangoAttrList.

Link copied to clipboard

Insert the given attribute into the PangoAttrList.

Link copied to clipboard
fun ref(): AttrList

Increase the reference count of the given attribute list by one.

Link copied to clipboard
fun splice(other: AttrList, pos: Int, len: Int)

This function opens up a hole in @list, fills it in with attributes from the left, and then merges

Link copied to clipboard
fun unref()

Decrease the reference count of the given attribute list by one.

Link copied to clipboard
fun update(pos: Int, remove: Int, add: Int)

Update indices of attributes in @list for a change in the text they refer to.