Skip to content

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.

ReturnsSignatureSummary
NativeCursorforPlatform() factoryReturns 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() protectedCreates an implementation, for a subclass.

ReturnsSignatureSummary
voidapply(Cursor cursor)Shows the cursor over the Display, loading its native handle once; after one failure, prints a dev warning and stops trying.
ReturnsSignatureSummary
Objectload(Cursor cursor) hook abstract protectedJOID calls it the first time a cursor is shown.

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.

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

Report a problem with this page