Struct

PangoItem

Description [src]

struct PangoItem {
  int offset;
  int length;
  int num_chars;
  PangoAnalysis analysis;
}

The PangoItem structure stores information about a segment of text.

You typically obtain PangoItems by itemizing a piece of text with pango_itemize().

Structure members
offset

Byte offset of the start of this item in text.

length

Length of this item in bytes.

num_chars

Number of Unicode characters in the item.

analysis

Analysis results for the item.

Constructors

pango_item_new

Creates a new PangoItem structure initialized to default values.

Instance methods

pango_item_apply_attrs

Add attributes to a PangoItem.

Available since: 1.44

pango_item_copy

Copy an existing PangoItem structure.

pango_item_free

Free a PangoItem and all associated memory.

pango_item_split

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.