Skip to content

UIImage

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

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

new UIImage(props): UIImage

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

UIImageProps

UIImage

readonly container: Sprite

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


readonly yogaNode: Node

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

UIElement.yogaNode

get displayObject(): Container

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

Container

UIElement.displayObject


get visible(): boolean

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

boolean

set visible(v): void

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

boolean

void

UIElement.visible

applyLayout(): void

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

Scale sprite to match Yoga computed size.

void

UIElement.applyLayout


destroy(): void

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

void

UIElement.destroy


update(props): void

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

Record<string, unknown>

void

UIElement.update