Package org.lwjgl.glfw
Interface GLFWCursorPosCallbackI
-
- All Superinterfaces:
- CallbackI, CallbackI.V, Pointer
- All Known Implementing Classes:
- GLFWCursorPosCallback
@FunctionalInterface public interface GLFWCursorPosCallbackI extends CallbackI.V
Instances of this interface may be passed to theSetCursorPosCallbackmethod.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lwjgl.system.CallbackI
CallbackI.B, CallbackI.D, CallbackI.F, CallbackI.I, CallbackI.J, CallbackI.P, CallbackI.S, CallbackI.V, CallbackI.Z
-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method and Description default longaddress()Returns the raw pointer address as alongvalue.default voidcallback(long args)Will be called by native code.voidinvoke(long window, double xpos, double ypos)Will be called when the cursor is moved.
-
-
-
Method Detail
-
address
default long address()
Description copied from interface:PointerReturns the raw pointer address as alongvalue.
-
callback
default void callback(long args)
Description copied from interface:CallbackI.VWill be called by native code.- Specified by:
callbackin interfaceCallbackI.V- Parameters:
args- pointer to aDCArgsiterator
-
invoke
void invoke(long window, double xpos, double ypos)Will be called when the cursor is moved.The callback function receives the cursor position, measured in screen coordinates but relative to the top-left corner of the window client area. On platforms that provide it, the full sub-pixel cursor position is passed on.
- Parameters:
window- the window that received the eventxpos- the new cursor x-coordinate, relative to the left edge of the client areaypos- the new cursor y-coordinate, relative to the top edge of the client area
-
-