PgGlyphString

A PangoGlyphString 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(PangoGlyphString* pangoGlyphString, bool ownedRef)

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

this
this()

Create a new PangoGlyphString.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

copy
PgGlyphString copy()

Copy a glyph string and associated storage.

extents
void extents(PgFont font, PangoRectangle inkRect, PangoRectangle logicalRect)

Compute the logical and ink extents of a glyph string.

extentsRange
void extentsRange(int start, int end, PgFont font, PangoRectangle inkRect, PangoRectangle logicalRect)

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

free
void free()

Free a glyph string and associated storage.

getLogicalWidths
void getLogicalWidths(string text, int length, int embeddingLevel, int[] logicalWidths)

Given a PangoGlyphString and corresponding text, determine the width corresponding to each character.

getPgGlyphStringStruct
PangoGlyphString* getPgGlyphStringStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getWidth
int getWidth()

Computes the logical width of the glyph string.

indexToX
void indexToX(string text, int length, PangoAnalysis* analysis, 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, int length, PangoAnalysis* analysis, int xPos, int index, int trailing)

Convert from x offset to character position.

Static functions

getType
GType getType()

Variables

ownedRef
bool ownedRef;
Undocumented in source.
pangoGlyphString
PangoGlyphString* pangoGlyphString;

the main Gtk struct

Meta