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
int offset() @property nothrowGet `offset` field. Returns: byte offset of the start of this item in text.void offset(int propval) @property nothrowSet `offset` field. Params: propval = byte offset of the start of this item in text.void length(int propval) @property nothrowSet `length` field. Params: propval = length of this item in bytes.int numChars() @property nothrowGet `numChars` field. Returns: number of Unicode characters in the item.void numChars(int propval) @property nothrowSet `numChars` field. Params: propval = number of Unicode characters in the item.pango.analysis.Analysis analysis() @property nothrowGet `analysis` field. Returns: analysis results for the item.void applyAttrs(pango.attr_iterator.AttrIterator iter) nothrowAdd attributes to a [pango.item.Item].pango.item.Item copy() nothrowCopy an existing [pango.item.Item] structure. Returns: the newly allocated [pango.item.Item]pango.item.Item split(int splitIndex, int splitOffset) nothrowModifies 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.