LayoutIter

A pango.layout_iter.LayoutIter can be used to iterate over the visual extents of a pango.layout.Layout.

To obtain a pango.layout_iter.LayoutIter, use pango.layout.Layout.getIter.

The pango.layout_iter.LayoutIter structure is opaque, and has no user-visible fields.

Members

Functions

atLastLine
bool atLastLine()

Determines whether iter is on the last line of the layout.

copy
pango.layout_iter.LayoutIter copy()

Copies a pango.layout_iter.LayoutIter.

getBaseline
int getBaseline()

Gets the Y position of the current line's baseline, in layout coordinates.

getCharExtents
void getCharExtents(pango.types.Rectangle logicalRect)

Gets the extents of the current character, in layout coordinates.

getClusterExtents
void getClusterExtents(pango.types.Rectangle inkRect, pango.types.Rectangle logicalRect)

Gets the extents of the current cluster, in layout coordinates.

getIndex
int getIndex()

Gets the current byte index.

getLayout
pango.layout.Layout getLayout()

Gets the layout associated with a pango.layout_iter.LayoutIter.

getLayoutExtents
void getLayoutExtents(pango.types.Rectangle inkRect, pango.types.Rectangle logicalRect)

Obtains the extents of the pango.layout.Layout being iterated over.

getLine
pango.layout_line.LayoutLine getLine()

Gets the current line.

getLineExtents
void getLineExtents(pango.types.Rectangle inkRect, pango.types.Rectangle logicalRect)

Obtains the extents of the current line.

getLineReadonly
pango.layout_line.LayoutLine getLineReadonly()

Gets the current line for read-only access.

getLineYrange
void getLineYrange(int y0, int y1)

Divides the vertical space in the pango.layout.Layout being iterated over between the lines in the layout, and returns the space belonging to the current line.

getRun
pango.types.LayoutRun getRun()

Gets the current run.

getRunBaseline
int getRunBaseline()

Gets the Y position of the current run's baseline, in layout coordinates.

getRunExtents
void getRunExtents(pango.types.Rectangle inkRect, pango.types.Rectangle logicalRect)

Gets the extents of the current run in layout coordinates.

getRunReadonly
pango.types.LayoutRun getRunReadonly()

Gets the current run for read-only access.

nextChar
bool nextChar()

Moves iter forward to the next character in visual order.

nextCluster
bool nextCluster()

Moves iter forward to the next cluster in visual order.

nextLine
bool nextLine()

Moves iter forward to the start of the next line.

nextRun
bool nextRun()

Moves iter forward to the next run in visual order.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.