Skip to content

five-on-it / apps/client/src/gui/layout / NamedRect

Interface: NamedRect ​

Defined in: apps/client/src/gui/layout.ts:200

A block with a name, as the tests see it: its rectangle in the panel, its text, its state.

Properties ​

clickable ​

clickable: boolean

Defined in: apps/client/src/gui/layout.ts:213

It takes a click (a button, a field, a map).


enabled ​

enabled: boolean

Defined in: apps/client/src/gui/layout.ts:209

False for a greyed-out button.


height ​

height: number

Defined in: apps/client/src/gui/layout.ts:207


id ​

id: string

Defined in: apps/client/src/gui/layout.ts:201


tags ​

tags: string[]

Defined in: apps/client/src/gui/layout.ts:211

selected, a box's tags.


text ​

text: string

Defined in: apps/client/src/gui/layout.ts:203

Its text: a line's, a button's (1 Messages), a box's every text joined by spaces.


width ​

width: number

Defined in: apps/client/src/gui/layout.ts:206


x ​

x: number

Defined in: apps/client/src/gui/layout.ts:204


y ​

y: number

Defined in: apps/client/src/gui/layout.ts:205