LayoutLine

A pango.layout_line.LayoutLine represents one of the lines resulting from laying out a paragraph via pango.layout.Layout.

pango.layout_line.LayoutLine structures are obtained by calling pango.layout.Layout.getLine and are only valid until the text, attributes, or settings of the parent pango.layout.Layout are modified.

Members

Functions

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

Computes the logical and ink extents of a layout line.

getHeight
void getHeight(int height)

Computes the height of the line, as the maximum of the heights of fonts used in this line.

getLength
int getLength()

Returns the length of the line, in bytes.

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

Computes the logical and ink extents of layout_line in device units.

getResolvedDirection
pango.types.Direction getResolvedDirection()

Returns the resolved direction of the line.

getStartIndex
int getStartIndex()

Returns the start index of the line, as byte index into the text of the layout.

getXRanges
void getXRanges(int startIndex, int endIndex, int[] ranges)

Gets a list of visual ranges corresponding to a given logical range.

indexToX
void indexToX(int index, bool trailing, int xPos)

Converts an index within a line to a X position.

xToIndex
bool xToIndex(int xPos, int index, int trailing)

Converts from x offset to the byte index of the corresponding character within the text of the layout.

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.