1681-engine / ui / UiHost
Interface: UiHost ​
Defined in: src/ui/UiHost.ts:9
What a widget needs from the root it sits under; the root implements it (kept apart so the two never import each other).
Properties ​
isUiHost ​
ts
readonly isUiHost: true;Defined in: src/ui/UiHost.ts:10
pixelPerfect ​
ts
readonly pixelPerfect: boolean;Defined in: src/ui/UiHost.ts:12
Lay out and draw on whole pixels.
Methods ​
animate() ​
ts
animate(t): void;Defined in: src/ui/UiHost.ts:16
Ticks t every frame until it reports it has settled: only what moves costs a frame.
Parameters ​
| Parameter | Type |
|---|---|
t | UiTicking |
Returns ​
void
invalidateFocus() ​
ts
invalidateFocus(): void;Defined in: src/ui/UiHost.ts:14
A widget became focusable or stopped being (added, removed, enabled, hidden): the focus list is stale.
Returns ​
void