Skip to content

API Reference / @gtkx/cairo / TextCluster

Class: TextCluster

Defined in: structs.d.ts:105

A cairo_text_cluster_t: how many bytes of text map to how many glyphs.

Constructors

Constructor

new TextCluster(props?): TextCluster

Defined in: structs.d.ts:109

Allocates a cluster, writing the given fields and leaving the others at zero.

Parameters

props?

TextClusterConstructorProps

Returns

TextCluster

Properties

__type__

__type__: bigint

Defined in: structs.d.ts:107

GType of CairoTextCluster, the boxed type this struct is registered under.

Accessors

numBytes

Get Signature

get numBytes(): number

Defined in: structs.d.ts:111

Number of UTF-8 bytes the cluster covers.

Returns

number

Set Signature

set numBytes(value): void

Defined in: structs.d.ts:113

Number of UTF-8 bytes the cluster covers.

Parameters
value

number

Returns

void


numGlyphs

Get Signature

get numGlyphs(): number

Defined in: structs.d.ts:115

Number of glyphs the cluster covers.

Returns

number

Set Signature

set numGlyphs(value): void

Defined in: structs.d.ts:117

Number of glyphs the cluster covers.

Parameters
value

number

Returns

void

Released under the MPL-2.0 License.