Skip to content

UINineSlice

Defined in: ui/src/UINineSlice.ts:16

Displays a nine-slice texture as a UI element. Requires explicit width/height from layout.

new UINineSlice(props): UINineSlice

Defined in: ui/src/UINineSlice.ts:28

UINineSliceProps

UINineSlice

readonly container: NineSliceSprite

Defined in: ui/src/UINineSlice.ts:17


readonly yogaNode: Node

Defined in: ui/src/UINineSlice.ts:18

UIElement.yogaNode

get displayObject(): DisplayContainer

Defined in: ui/src/UINineSlice.ts:20

DisplayContainer

UIElement.displayObject


get visible(): boolean

Defined in: ui/src/UINineSlice.ts:75

boolean

set visible(v): void

Defined in: ui/src/UINineSlice.ts:79

boolean

void

UIElement.visible

applyLayout(): void

Defined in: ui/src/UINineSlice.ts:68

Set sprite dimensions to match Yoga computed size.

void

UIElement.applyLayout


destroy(): void

Defined in: ui/src/UINineSlice.ts:103

Idempotent — a second call is a no-op.

void

UIElement.destroy


update(p): void

Defined in: ui/src/UINineSlice.ts:84

Partial<UINineSliceProps>

void

UIElement.update