PgItem

The PangoItem structure stores information about a segment of text.

You typically obtain PangoItems by itemizing a piece of text with [func@itemize].

Constructors

this
this(PangoItem* pangoItem, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new PangoItem structure initialized to default values.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

applyAttrs
void applyAttrs(PgAttributeIterator iter)

Add attributes to a PangoItem.

copy
PgItem copy()

Copy an existing PangoItem structure.

free
void free()

Free a PangoItem and all associated memory.

getPgItemStruct
PangoItem* getPgItemStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

split
PgItem split(int splitIndex, int splitOffset)

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.

Properties

analysis
PangoAnalysis analysis [@property getter]
PangoAnalysis analysis [@property setter]

analysis results for the item.

length
int length [@property getter]
int length [@property setter]

length of this item in bytes.

numChars
int numChars [@property getter]
int numChars [@property setter]

number of Unicode characters in the item.

offset
int offset [@property getter]
int offset [@property setter]

byte offset of the start of this item in text.

Static functions

getType
GType getType()

Variables

ownedRef
bool ownedRef;
Undocumented in source.
pangoItem
PangoItem* pangoItem;

the main Gtk struct

Meta