Skip to content

UIImage

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

Displays a texture as a UI element, scaling to fit Yoga-computed dimensions.

new UIImage(props): UIImage

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

UIImageProps

UIImage

readonly container: Sprite

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


readonly yogaNode: Node

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

UIElement.yogaNode

get displayObject(): DisplayContainer

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

DisplayContainer

UIElement.displayObject


get visible(): boolean

Defined in: ui/src/UIImage.ts:83

boolean

set visible(v): void

Defined in: ui/src/UIImage.ts:87

boolean

void

UIElement.visible

applyLayout(): void

Defined in: ui/src/UIImage.ts:76

Scale sprite to match Yoga computed size.

void

UIElement.applyLayout


destroy(): void

Defined in: ui/src/UIImage.ts:112

Idempotent — a second call is a no-op.

void

UIElement.destroy


update(p): void

Defined in: ui/src/UIImage.ts:92

Partial<UIImageProps>

void

UIElement.update