type

Dir

src @Js
@Serializable { simple=true }
enum class Dir : Enum

Direction enums: up, down, left, right

enum

constructors

fromStr

Return the Dir instance for the specified name.

fields

vals

List of Dir values indexed by ordinal

Slot Details

down

src const static Dir down := ...

fromStr

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

Return the Dir instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

left

src const static Dir left := ...

src const static Dir right := ...

up

src const static Dir up := ...

vals

src const static Dir[] vals := Dir[Dir.up,Dir.down,Dir.left,Dir.right]

List of Dir values indexed by ordinal