NativeCursor
abstract class NativeCursor
Known subtypes: MacNativeCursor, WindowsNativeCursor, X11NativeCursor
Package: dev.joid.base.lwjgl2.window.cursor · Module: base-lwjgl2 · Source: NativeCursor.java
Backends: LWJGL 2
Sets the system cursors that LWJGL 2 cannot set by itself, through JNA and the native cursor of LWJGL 2.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
NativeCursor | forPlatform() factory | Returns the cursor implementation of the current system, or null when JNA is missing, with a dev warning: the cursor then stays the default one. |
| NativeCursor() protected | Creates an implementation, for a subclass. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | apply(Cursor cursor) | Shows the cursor over the Display, loading its native handle once; after one failure, prints a dev warning and stops trying. |
For subclasses
Section titled “For subclasses”| Returns | Signature | Summary |
|---|---|---|
Object | load(Cursor cursor) hook abstract protected | JOID calls it the first time a cursor is shown. |
Creation details
Section titled “Creation details”forPlatform
Section titled “forPlatform”NativeCursor forPlatform() factory
Returns the cursor implementation of the current system, or null when JNA is missing, with a dev warning: the cursor then stays the default one.
NativeCursor
Section titled “NativeCursor”NativeCursor() protected
Creates an implementation, for a subclass.
Method details
Section titled “Method details”void apply(Cursor cursor)
Shows the cursor over the Display, loading its native handle once; after one failure, prints a dev warning and stops trying.
Object load(Cursor cursor) hook abstract protected
JOID calls it the first time a cursor is shown. Return the native handle of that system cursor.
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
