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: <Error class: unknown class>

length of this item in bytes.

Link copied to clipboard
var numChars: <Error class: unknown class>

number of Unicode characters in the item.

Link copied to clipboard
var offset: <Error class: unknown class>

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 getCharOffset(): <Error class: unknown class>

Returns the character offset of the item from the beginning of the itemized text.

Link copied to clipboard
fun split(splitIndex: <Error class: unknown class>, splitOffset: <Error class: unknown class>): 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.

Link copied to clipboard
open override fun toString(): String