SetCursorPosCallback method.
void (*invoke) (
GLFWwindow *window,
double xpos,
double ypos
)
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| protected | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static GLFWCursorPosCallback | Returns: the newGLFWCursorPosCallbackCreates a |
| public static GLFWCursorPosCallback | create(GLFWCursorPosCallbackI instance)
Creates a |
| public static GLFWCursorPosCallback | |
| public GLFWCursorPosCallback |
| GLFWCursorPosCallback | back to summary |
|---|---|
| protected GLFWCursorPosCallback() | |
| GLFWCursorPosCallback | back to summary |
|---|---|
| pack-priv GLFWCursorPosCallback(long functionPointer) | |
| create | back to summary |
|---|---|
| public static GLFWCursorPosCallback create(long functionPointer) Creates a
| |
| create | back to summary |
|---|---|
| public static GLFWCursorPosCallback create(GLFWCursorPosCallbackI instance) Creates a | |
| createSafe | back to summary |
|---|---|
| public static GLFWCursorPosCallback createSafe(long functionPointer) Like
| |
| set | back to summary |
|---|---|
| public GLFWCursorPosCallback set(long window) See | |
| Modifier and Type | Field and Description |
|---|---|
| private final GLFWCursorPosCallbackI |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | invoke(long
the window that received the event window, double the new cursor x-coordinate, relative to the left edge of the content area xpos, double the new cursor y-coordinate, relative to the top edge of the content area ypos)Implements org. |
| delegate | back to summary |
|---|---|
| private final GLFWCursorPosCallbackI delegate | |
| Container | back to summary |
|---|---|
| pack-priv Container(long functionPointer, GLFWCursorPosCallbackI delegate) | |
| invoke | back to summary |
|---|---|
| public void invoke(long window, double xpos, double ypos) Implements org. Doc from org. 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.
| |