Class: Widget#

Hierarchy#

Properties#

handle#

• Readonly handle: widget

Inherited from: Handle.handle

Defined in: handles/handle.ts:6

Accessors#

id#

id(): number

Get the unique ID of the handle. The ID is recycled once you destroy the object.

Returns: number

The unique ID of a handle object.

Defined in: handles/handle.ts:18


life#

life(): number

Get the Widget's life.

Returns: number

Defined in: handles/widget.ts:9

life(value: number): void

Set the Widget's life.

Parameters:#

NameType
valuenumber

Returns: void

Defined in: handles/widget.ts:16


x#

x(): number

Get the Widget's x-coordinate

Returns: number

Defined in: handles/widget.ts:23


y#

y(): number

Get the Widget's y-coordinate

Returns: number

Defined in: handles/widget.ts:30

Methods#

fromEvent#

static fromEvent(): Widget

Returns: Widget

Defined in: handles/widget.ts:34


fromHandle#

static fromHandle(handle: widget): Widget

Parameters:#

NameType
handlewidget

Returns: Widget

Defined in: handles/widget.ts:38