#
Class: Widget#
HierarchyHandle<widget>
↳ Widget
↳↳ Destructable
↳↳ Item
↳↳ Unit
#
Properties#
handle• Readonly
handle: widget
Defined in: handles/handle.ts:6
#
Accessors#
idid(): 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
#
lifelife(): number
Get the Widget's life.
Returns: number
Defined in: handles/widget.ts:9
life(value: number): void
Set the Widget's life.
#
Parameters:Name | Type |
---|---|
value | number |
Returns: void
Defined in: handles/widget.ts:16
#
xx(): number
Get the Widget's x-coordinate
Returns: number
Defined in: handles/widget.ts:23
#
yy(): number
Get the Widget's y-coordinate
Returns: number
Defined in: handles/widget.ts:30
#
Methods#
fromEventstatic fromEvent(): Widget
Returns: Widget
Defined in: handles/widget.ts:34
#
fromHandlestatic fromHandle(handle: widget): Widget
#
Parameters:Name | Type |
---|---|
handle | widget |
Returns: Widget
Defined in: handles/widget.ts:38