pango.item

Module for [Item] class

class Item

Types 1

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 * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
Item self()Returns `this`, for use in `with` statements.
int offset() @propertyGet `offset` field. Returns: byte offset of the start of this item in text.
void offset(int propval) @propertySet `offset` field. Params: propval = byte offset of the start of this item in text.
int length() @propertyGet `length` field. Returns: length of this item in bytes.
void length(int propval) @propertySet `length` field. Params: propval = length of this item in bytes.
int numChars() @propertyGet `numChars` field. Returns: number of Unicode characters in the item.
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.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [pango.item.Item] structure initialized to default values. Returns: the newly allocated [pango.item.Item], which should be freed with [pango.item.Item.free].