TextCluster

The #cairo_text_cluster_t structure holds information about a single <firstterm>text cluster</firstterm>. A text cluster is a minimal mapping of some glyphs corresponding to some UTF-8 text.

For a cluster to be valid, both @num_bytes and @num_glyphs should be non-negative, and at least one should be non-zero. Note that clusters with zero glyphs are not as well supported as normal clusters. For example, PDF rendering applications typically ignore those clusters when PDF text is being selected.

See cairo.context.Context.showTextGlyphs for how clusters are used in advanced text operations.

Constructors

this
this(int numBytes, int numGlyphs)

Create a text_cluster.TextCluster boxed type.

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

Members

Functions

cPtr
void* cPtr(Flag!"Dup" dup)
self
TextCluster self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]
numBytes
int numBytes [@property getter]

Get field numBytes.

numBytes
int numBytes [@property setter]

Set field numBytes.

numGlyphs
int numGlyphs [@property getter]

Get field numGlyphs.

numGlyphs
int numGlyphs [@property setter]

Set field numGlyphs.

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.