Skip to content

IFocusable

Properties

name

readonly name: undefined | null | string

For debugging purposes

Source

src/input/IFocusable.ts:7


parent?

optional parent: any

Source

src/input/IFocusable.ts:4

Methods

getFocusPosition()

getFocusPosition(): Point

Gets the position in global coordinate space that the focus should be centred around.

Returns

Point

The position that the focus should be centred around.

Source

src/input/IFocusable.ts:28


getFocusSize()

getFocusSize(): IPoint

Gets the size of the area in global coordinate space that the focus should surround.

Returns

IPoint

The size of the area that the focus should surround.

Source

src/input/IFocusable.ts:34


isFocusable()?

optional isFocusable(): boolean

Returns

boolean

true if this focusable can be focused Defaults to this.interactive && this.worldVisible

Source

src/input/IFocusable.ts:40


onFocusActivated()

onFocusActivated(): void

Called when this Focusable is focussed and then activated.

Returns

void

Source

src/input/IFocusable.ts:22


onFocusBegin()

onFocusBegin(): void

Called when this Focusable is focussed.

Returns

void

Source

src/input/IFocusable.ts:12


onFocusEnd()

onFocusEnd(): void

Called when this Focusable is no longer focussed.

Returns

void

Source

src/input/IFocusable.ts:17