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.

Constructors

this
this(pango.layout.Layout layout, int startIndex, int length, uint isParagraphStart, uint resolvedDir)

Create a layout_line.LayoutLine boxed type.

this
this(void* ptr, Flag!"Take" take)

Members

Functions

cPtr
void* cPtr(Flag!"Dup" dup)
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.

self
LayoutLine self()

Returns this, for use in with statements.

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.

Properties

gType
GType gType [@property getter]
isParagraphStart
uint isParagraphStart [@property getter]

Get field isParagraphStart.

isParagraphStart
uint isParagraphStart [@property setter]

Set field isParagraphStart.

layout
pango.layout.Layout layout [@property getter]

Get field layout.

layout
pango.layout.Layout layout [@property setter]

Set field layout.

length
int length [@property getter]

Get field length.

length
int length [@property setter]

Set field length.

resolvedDir
uint resolvedDir [@property getter]

Get field resolvedDir.

resolvedDir
uint resolvedDir [@property setter]

Set field resolvedDir.

startIndex
int startIndex [@property getter]

Get field startIndex.

startIndex
int startIndex [@property setter]

Set field startIndex.

Static functions

getGType
GType getGType()

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.