pango.item
Module for [Item] class
class Item
Types 1
classItem : gobject.boxed.Boxed
The [pango.item.Item] structure stores information about a segment of text.
You typically obtain PangoItems by itemizing a piece of text with func@itemize.
Methods
void offset(int propval) @propertySet `offset` field. Params: propval = byte offset of the start of this item in text.void length(int propval) @propertySet `length` field. Params: propval = length of this item in bytes.void numChars(int propval) @propertySet `numChars` field. Params: propval = number of Unicode characters in the item.pango.analysis.Analysis analysis() @propertyGet `analysis` field. Returns: analysis results for the item.void applyAttrs(pango.attr_iterator.AttrIterator iter)Add attributes to a [pango.item.Item].pango.item.Item copy()Copy an existing [pango.item.Item] structure. Returns: the newly allocated [pango.item.Item]pango.item.Item split(int splitIndex, int splitOffset)Modifies orig to cover only the text after splitindex, and returns a new item that covers the text before splitindex that used to be in orig.