enum const class domkit::Dir
sys::Obj sys::Enum domkit::Dir
@Js
@Serializable { simple=true }
Direction enums: up, down, left, right
- down
-
const static Dir down := ...
- fromStr
-
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
-
const static Dir left := ...
- right
-
const static Dir right := ...
- up
-
const static Dir up := ...
- vals
-
const static List<Dir> vals := Dir[Dir.up,Dir.down,Dir.left,Dir.right]
List of Dir values indexed by ordinal