Cursor
enum Cursor
Package: dev.joid.lib.input.cursor · Module: core · Source: Cursor.java
The shape of the mouse pointer that a node shows while the pointer is over it.
Description
Section titled “Description”Give a node a cursor with Node.cursor; Change the cursor over a node explains which cursor shows over a node without one and while a node is pressed.
Backend note: the shapes are the standard pointers of the system. On LWJGL 2, JOID loads them from the native cursors of Windows, macOS or X11.
Learn more
Section titled “Learn more”Values
Section titled “Values”| Value | Summary |
|---|---|
DEFAULT | The arrow of the system. |
POINTER | The pointing hand that marks something to click. |
TEXT | The I-beam that marks text to edit or select; every text field shows it. |
CROSSHAIR | A thin cross, for precise picking. |
MOVE | Four arrows, for something to drag in every direction. |
NOT_ALLOWED | A crossed circle, for an action that is not available. |
RESIZE_EW | A horizontal double arrow, for resizing from a left or right edge. |
RESIZE_NS | A vertical double arrow, for resizing from a top or bottom edge. |
RESIZE_NWSE | A diagonal double arrow from the top left to the bottom right, for resizing from those corners. |
RESIZE_NESW | A diagonal double arrow from the top right to the bottom left, for resizing from those corners. |
Value details
Section titled “Value details”DEFAULT
Section titled “DEFAULT”DEFAULT
The arrow of the system.
POINTER
Section titled “POINTER”POINTER
The pointing hand that marks something to click.
TEXT
The I-beam that marks text to edit or select; every text field shows it.
CROSSHAIR
Section titled “CROSSHAIR”CROSSHAIR
A thin cross, for precise picking.
MOVE
Four arrows, for something to drag in every direction.
NOT_ALLOWED
Section titled “NOT_ALLOWED”NOT_ALLOWED
A crossed circle, for an action that is not available.
RESIZE_EW
Section titled “RESIZE_EW”RESIZE_EW
A horizontal double arrow, for resizing from a left or right edge.
RESIZE_NS
Section titled “RESIZE_NS”RESIZE_NS
A vertical double arrow, for resizing from a top or bottom edge.
RESIZE_NWSE
Section titled “RESIZE_NWSE”RESIZE_NWSE
A diagonal double arrow from the top left to the bottom right, for resizing from those corners.
RESIZE_NESW
Section titled “RESIZE_NESW”RESIZE_NESW
A diagonal double arrow from the top right to the bottom left, for resizing from those corners.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
