Item

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

The PangoItem structure stores information about a segment of text.

You typically obtain PangoItems by itemizing a piece of text with func@itemize.

Skipped during bindings generation

  • field analysis: Analysis

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
var length: Int

length of this item in bytes.

Link copied to clipboard

number of Unicode characters in the item.

Link copied to clipboard
var offset: Int

byte offset of the start of this item in text.

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

Functions

Link copied to clipboard

Add attributes to a PangoItem.

Link copied to clipboard
fun copy(): Item?

Copy an existing PangoItem structure.

Link copied to clipboard
fun free()

Free a PangoItem and all associated memory.

Link copied to clipboard
fun split(splitIndex: Int, splitOffset: Int): Item

Modifies @orig to cover only the text after @split_index, and returns a new item that covers the text before @split_index that used to be in @orig.