Skip to content

API Interface InputGlyph

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Interface: InputGlyph

Defined in: src/engine/input/glyphs.ts:18

One glyph: its SVG markup and size, a URL for it, and its asset path.

Properties

asset

readonly asset: string;

Defined in: src/engine/input/glyphs.ts:29

Its asset path (asset:@myco/glyphs/xbox/buttonSouth.svg), for UIImage.image and anything else that takes a texture asset.


height

readonly height: number;

Defined in: src/engine/input/glyphs.ts:25


key

readonly key: string;

Defined in: src/engine/input/glyphs.ts:20

The icon key (xbox/buttonSouth).


svg

readonly svg: string;

Defined in: src/engine/input/glyphs.ts:22

The SVG markup.


url

readonly url: string;

Defined in: src/engine/input/glyphs.ts:27

A URL showing it (a blob URL, or a data URL where there are no blob URLs), for <img> or CSS.


width

readonly width: number;

Defined in: src/engine/input/glyphs.ts:24

Its size in pixels (64 high; keycaps with long labels are wider).

Clone this wiki locally