Skip to main content

FlixelMouseCursor

View source

enum

org.flixelgdx.input.mouse.FlixelMouseCursor

public final enum FlixelMouseCursor

Portable native cursor presets for FlixelMouseIconManager.

Backends map these to OS or browser cursors where available. When a preset has no exact match, each backend chooses the closest alternative and documents limits in its own Javadoc.

Plain HTML/CSS builds can expose richer cursor sets through standard CSS keywords, while GLFW on some Linux desktops may fall back to the arrow for waits, grabs, diagonal resizes, or blocked icons when the host cursor theme omits matching glyphs.

Fields

ARROW

public static final FlixelMouseCursor ARROW

Default arrow pointer.


IBEAM

public static final FlixelMouseCursor IBEAM

Text caret, suitable for editable text.


WAIT

public static final FlixelMouseCursor WAIT

Busy or loading indicator. LWJGL3 maps this to FlixelMouseCursor.ARROW. TeaVM/CSS uses native wait.


CROSSHAIR

public static final FlixelMouseCursor CROSSHAIR

Simple crosshair.


HAND

public static final FlixelMouseCursor HAND

Hand, often used for links or buttons.


GRAB

public static final FlixelMouseCursor GRAB

Open hand suggesting draggable content.


GRABBING

public static final FlixelMouseCursor GRABBING

Closed hand while dragging (grabbing).

See Also: .GRAB


HORIZONTAL_RESIZE

public static final FlixelMouseCursor HORIZONTAL_RESIZE

Horizontal resize.


VERTICAL_RESIZE

public static final FlixelMouseCursor VERTICAL_RESIZE

Vertical resize.


NORTH_WEST_SOUTH_EAST_RESIZE

public static final FlixelMouseCursor NORTH_WEST_SOUTH_EAST_RESIZE

Diagonal resize (north-west to south-east). LWJGL3 may use FlixelMouseCursor.ARROW on some Linux desktops.


NORTH_EAST_SOUTH_WEST_RESIZE

public static final FlixelMouseCursor NORTH_EAST_SOUTH_WEST_RESIZE

Diagonal resize (north-east to south-west). LWJGL3 may use FlixelMouseCursor.ARROW on some Linux desktops.


ALL_RESIZE

public static final FlixelMouseCursor ALL_RESIZE

Move or resize in all directions.


NOT_ALLOWED

public static final FlixelMouseCursor NOT_ALLOWED

Not allowed or unavailable. LWJGL3 may use FlixelMouseCursor.ARROW on some Linux desktops.


NONE

public static final FlixelMouseCursor NONE

Invisible cursor. Use FlixelMouseIconManager.resetCursor() to restore the default instead of selecting this when possible.


Methods

values()

public static FlixelMouseCursor[] values()

valueOf(String)

public static FlixelMouseCursor valueOf(String name)