A named cursor shape, the friendly vocabulary for UIComponent.hoverCursor and UICursors.set.

An enum abstract over String carrying OpenFL's cursor ids, with an implicit @:to MouseCursor so it drops straight into any OpenFL cursor slot (comp.hoverCursor = UICursor.MOVE). OpenFL only exposes ARROW/AUTO/BUTTON/HAND/IBEAM as public MouseCursor members; the rest here (move, wait, resize, crosshair) ride OpenFL's from String on their underlying ids.

  • DEFAULT — auto (shape chosen by the object under the pointer)
  • ARROW — plain arrow
  • CLICK — button-press hand (what UIButton uses)
  • GRAB — open/dragging hand
  • TEXT — I-beam
  • MOVE — four-way move
  • WAIT — busy/wait
  • CROSSHAIR — crosshair
  • RESIZE_H / RESIZE_V — horizontal / vertical resize
  • RESIZE_NESW / RESIZE_NWSE — diagonal resize

Static methods

@:tostaticinlinetoMouseCursor(this:String):MouseCursor

The OpenFL cursor this maps to (implicit; lets a UICursor fill any MouseCursor slot).

Variables

@:value(cast "arrow")@:impl@:enuminlineread onlyARROW:UICursor = "arrow"

@:value(cast "button")@:impl@:enuminlineread onlyCLICK:UICursor = "button"

@:value(cast "crosshair")@:impl@:enuminlineread onlyCROSSHAIR:UICursor = "crosshair"

@:value(cast "auto")@:impl@:enuminlineread onlyDEFAULT:UICursor = "auto"

@:value(cast "hand")@:impl@:enuminlineread onlyGRAB:UICursor = "hand"

@:value(cast "move")@:impl@:enuminlineread onlyMOVE:UICursor = "move"

@:value(cast "resize_we")@:impl@:enuminlineread onlyRESIZE_H:UICursor = "resize_we"

@:value(cast "resize_nesw")@:impl@:enuminlineread onlyRESIZE_NESW:UICursor = "resize_nesw"

@:value(cast "resize_nwse")@:impl@:enuminlineread onlyRESIZE_NWSE:UICursor = "resize_nwse"

@:value(cast "resize_ns")@:impl@:enuminlineread onlyRESIZE_V:UICursor = "resize_ns"

@:value(cast "ibeam")@:impl@:enuminlineread onlyTEXT:UICursor = "ibeam"

@:value(cast "wait")@:impl@:enuminlineread onlyWAIT:UICursor = "wait"