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) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
Item self() nothrowReturns `this`, for use in `with` statements.
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.
int length() @property nothrowGet `length` field. Returns: length of this item in bytes.
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.
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].