type

CompLayout

@Js
const class CompLayout : Obj

CompLayout models layout of a component on a logical grid coordinate system

constructors

fromStr

Parse from string as "x,y,w"

make

Constructor

methods

equals

Return if obj is same CompLayout value.

hash

Return hash of x, y, and h

toStr

String representation as "x,y,w"

w

Width in logical coordinate system

x

Logical x coordinate

y

Logical y coordinate

Slot Details

equals

virtual override Bool equals(Obj? obj)

Return if obj is same CompLayout value.

fromStr

static new fromStr(Str s, Bool checked := true)

Parse from string as "x,y,w"

hash

virtual override Int hash()

Return hash of x, y, and h

make

new make(Int x, Int y, Int w := 8)

Constructor

toStr

virtual override Str toStr()

String representation as "x,y,w"

w

Int w()

Width in logical coordinate system

x

Int x()

Logical x coordinate

y

Int y()

Logical y coordinate