Class: MultiboardItem#

Hierarchy#

  • Handle<multiboarditem>

    ↳ MultiboardItem

Constructors#

constructor#

new MultiboardItem(board: Multiboard, x: number, y: number): MultiboardItem

Parameters:#

NameType
boardMultiboard
xnumber
ynumber

Returns: MultiboardItem

Defined in: handles/multiboard.ts:5

Properties#

handle#

• Readonly handle: multiboarditem

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

Methods#

destroy#

destroy(): void

Returns: void

Defined in: handles/multiboard.ts:14


setIcon#

setIcon(icon: string): void

Parameters:#

NameType
iconstring

Returns: void

Defined in: handles/multiboard.ts:18


setStyle#

setStyle(showValue: boolean, showIcon: boolean): void

Parameters:#

NameType
showValueboolean
showIconboolean

Returns: void

Defined in: handles/multiboard.ts:22


setValue#

setValue(val: string): void

Parameters:#

NameType
valstring

Returns: void

Defined in: handles/multiboard.ts:26


setValueColor#

setValueColor(red: number, green: number, blue: number, alpha: number): void

Parameters:#

NameType
rednumber
greennumber
bluenumber
alphanumber

Returns: void

Defined in: handles/multiboard.ts:30


setWidth#

setWidth(width: number): void

Parameters:#

NameType
widthnumber

Returns: void

Defined in: handles/multiboard.ts:34


fromHandle#

static fromHandle(handle: multiboarditem): MultiboardItem

Parameters:#

NameType
handlemultiboarditem

Returns: MultiboardItem

Defined in: handles/multiboard.ts:38