API Reference / @gtkx/cairo / Glyph
Class: Glyph
Defined in: packages/cairo/src/structs.ts:211
A cairo_glyph_t: one glyph index and where to draw it.
Constructors
Constructor
new Glyph(
props?):Glyph
Defined in: packages/cairo/src/structs.ts:220
Allocates a glyph, writing the given fields and leaving the others at zero.
Parameters
props?
Returns
Glyph
Properties
__type__
__type__:
bigint
Defined in: packages/cairo/src/structs.ts:217
GType of CairoGlyph, the boxed type this struct is registered under.
Accessors
index
Get Signature
get index():
bigint
Defined in: packages/cairo/src/structs.ts:229
Index of the glyph in the font.
Returns
bigint
Set Signature
set index(
value):void
Defined in: packages/cairo/src/structs.ts:234
Index of the glyph in the font.
Parameters
value
bigint
Returns
void
x
Get Signature
get x():
number
Defined in: packages/cairo/src/structs.ts:239
Horizontal position of the glyph origin.
Returns
number
Set Signature
set x(
value):void
Defined in: packages/cairo/src/structs.ts:244
Horizontal position of the glyph origin.
Parameters
value
number
Returns
void
y
Get Signature
get y():
number
Defined in: packages/cairo/src/structs.ts:249
Vertical position of the glyph origin.
Returns
number
Set Signature
set y(
value):void
Defined in: packages/cairo/src/structs.ts:254
Vertical position of the glyph origin.
Parameters
value
number
Returns
void