LavaUI docs

enum CursorShape

Swift

enum CursorShape

The pointer image over a view.

A small set on purpose. Every shape here exists in GLFW's standard cursors and in every X11 cursor theme the compositor can load, which is the whole bar a shape has to clear: one of the two run modes drawing an arrow where the other draws a resize handle would be worse than not offering it.

The raw values cross a process boundary (SetCursor in the IDL) and are mapped to names by the compositor, so they are stable — append, never renumber.

Sources/LavaUI/Cursor.swift:13

Cases

case arrow

The default pointer. What every view has until something says otherwise.

Sources/LavaUI/Cursor.swift:15

case text

I-beam, over editable or selectable text.

Sources/LavaUI/Cursor.swift:17

case pointer

The "this activates something" hand.

Sources/LavaUI/Cursor.swift:19

case crosshair

Not documented.

Sources/LavaUI/Cursor.swift:20

case resizeLeftRight

Horizontal drag: a vertical divider, a column edge.

Sources/LavaUI/Cursor.swift:22

case resizeUpDown

Vertical drag: a horizontal divider, a row edge.

Sources/LavaUI/Cursor.swift:24