|
|
|
@ -55,6 +55,7 @@ export type UIValue =
|
|
|
|
| { kind: 'padding', child: UIValue, amount: number }
|
|
|
|
| { kind: 'padding', child: UIValue, amount: number }
|
|
|
|
| { kind: 'positioned', x: number, y: number, child: UIValue }
|
|
|
|
| { kind: 'positioned', x: number, y: number, child: UIValue }
|
|
|
|
| { kind: 'opacity', child: UIValue, opacity: number }
|
|
|
|
| { kind: 'opacity', child: UIValue, opacity: number }
|
|
|
|
|
|
|
|
| { kind: 'clip', child: UIValue, w: number, h: number }
|
|
|
|
| { kind: 'stack', children: UIValue[] }
|
|
|
|
| { kind: 'stack', children: UIValue[] }
|
|
|
|
| { kind: 'text-input', value: string, placeholder: string, x: number, y: number, w: number, h: number, focused: boolean, onInput: Value, onSubmit: Value }
|
|
|
|
| { kind: 'text-input', value: string, placeholder: string, x: number, y: number, w: number, h: number, focused: boolean, onInput: Value, onSubmit: Value }
|
|
|
|
|
|
|
|
|
|
|
|
|