API Reference / @gtkx/cairo / Glyph
Class: Glyph
Defined in: structs.d.ts:86
A cairo_glyph_t: one glyph index and where to draw it.
Constructors
Constructor
new Glyph(
props?):Glyph
Defined in: structs.d.ts:90
Allocates a glyph, writing the given fields and leaving the others at zero.
Parameters
props?
Returns
Glyph
Properties
__type__
__type__:
bigint
Defined in: structs.d.ts:88
GType of CairoGlyph, the boxed type this struct is registered under.
Accessors
index
Get Signature
get index():
bigint
Defined in: structs.d.ts:92
Index of the glyph in the font.
Returns
bigint
Set Signature
set index(
value):void
Defined in: structs.d.ts:94
Index of the glyph in the font.
Parameters
value
bigint
Returns
void
x
Get Signature
get x():
number
Defined in: structs.d.ts:96
Horizontal position of the glyph origin.
Returns
number
Set Signature
set x(
value):void
Defined in: structs.d.ts:98
Horizontal position of the glyph origin.
Parameters
value
number
Returns
void
y
Get Signature
get y():
number
Defined in: structs.d.ts:100
Vertical position of the glyph origin.
Returns
number
Set Signature
set y(
value):void
Defined in: structs.d.ts:102
Vertical position of the glyph origin.
Parameters
value
number
Returns
void