GlyphString

A pango.glyph_string.GlyphString is used to store strings of glyphs with geometry and visual attribute information.

The storage for the glyph information is owned by the structure which simplifies memory management.

Constructors

this
this()

Create a new pango.glyph_string.GlyphString.

Members

Functions

copy
pango.glyph_string.GlyphString copy()

Copy a glyph string and associated storage.

extents
void extents(pango.font.Font font, pango.types.Rectangle inkRect, pango.types.Rectangle logicalRect)

Compute the logical and ink extents of a glyph string.

extentsRange
void extentsRange(int start, int end, pango.font.Font font, pango.types.Rectangle inkRect, pango.types.Rectangle logicalRect)

Computes the extents of a sub-portion of a glyph string.

getWidth
int getWidth()

Computes the logical width of the glyph string.

indexToX
void indexToX(string text, pango.analysis.Analysis analysis, int index, bool trailing, int xPos)

Converts from character position to x position.

indexToXFull
void indexToXFull(string text, pango.analysis.Analysis analysis, pango.types.LogAttr attrs, int index, bool trailing, int xPos)

Converts from character position to x position.

setSize
void setSize(int newLen)

Resize a glyph string to the given length.

xToIndex
void xToIndex(string text, pango.analysis.Analysis analysis, int xPos, int index, int trailing)

Convert from x offset to character position.

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.