Class GLFW
- All Implemented Interfaces:
GLFWConstants
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
Fields inherited from interface club.doki7.glfw.GLFWConstants
ACCUM_ALPHA_BITS, ACCUM_BLUE_BITS, ACCUM_GREEN_BITS, ACCUM_RED_BITS, ALPHA_BITS, ANGLE_PLATFORM_TYPE, ANGLE_PLATFORM_TYPE_D3D11, ANGLE_PLATFORM_TYPE_D3D9, ANGLE_PLATFORM_TYPE_METAL, ANGLE_PLATFORM_TYPE_NONE, ANGLE_PLATFORM_TYPE_OPENGL, ANGLE_PLATFORM_TYPE_OPENGLES, ANGLE_PLATFORM_TYPE_VULKAN, ANY_PLATFORM, ANY_POSITION, ANY_RELEASE_BEHAVIOR, API_UNAVAILABLE, ARROW_CURSOR, AUTO_ICONIFY, AUX_BUFFERS, BLUE_BITS, CENTER_CURSOR, CLIENT_API, COCOA_CHDIR_RESOURCES, COCOA_FRAME_NAME, COCOA_GRAPHICS_SWITCHING, COCOA_MENUBAR, COCOA_RETINA_FRAMEBUFFER, CONNECTED, CONTEXT_CREATION_API, CONTEXT_DEBUG, CONTEXT_NO_ERROR, CONTEXT_RELEASE_BEHAVIOR, CONTEXT_REVISION, CONTEXT_ROBUSTNESS, CONTEXT_VERSION_MAJOR, CONTEXT_VERSION_MINOR, CROSSHAIR_CURSOR, CURSOR, CURSOR_CAPTURED, CURSOR_DISABLED, CURSOR_HIDDEN, CURSOR_NORMAL, CURSOR_UNAVAILABLE, DECORATED, DEPTH_BITS, DISCONNECTED, DONT_CARE, DOUBLEBUFFER, EGL_CONTEXT_API, FALSE, FEATURE_UNAVAILABLE, FEATURE_UNIMPLEMENTED, FLOATING, FOCUS_ON_SHOW, FOCUSED, FORMAT_UNAVAILABLE, GAMEPAD_AXIS_LAST, GAMEPAD_AXIS_LEFT_TRIGGER, GAMEPAD_AXIS_LEFT_X, GAMEPAD_AXIS_LEFT_Y, GAMEPAD_AXIS_RIGHT_TRIGGER, GAMEPAD_AXIS_RIGHT_X, GAMEPAD_AXIS_RIGHT_Y, GAMEPAD_BUTTON_A, GAMEPAD_BUTTON_B, GAMEPAD_BUTTON_BACK, GAMEPAD_BUTTON_CIRCLE, GAMEPAD_BUTTON_CROSS, GAMEPAD_BUTTON_DPAD_DOWN, GAMEPAD_BUTTON_DPAD_LEFT, GAMEPAD_BUTTON_DPAD_RIGHT, GAMEPAD_BUTTON_DPAD_UP, GAMEPAD_BUTTON_GUIDE, GAMEPAD_BUTTON_LAST, GAMEPAD_BUTTON_LEFT_BUMPER, GAMEPAD_BUTTON_LEFT_THUMB, GAMEPAD_BUTTON_RIGHT_BUMPER, GAMEPAD_BUTTON_RIGHT_THUMB, GAMEPAD_BUTTON_SQUARE, GAMEPAD_BUTTON_START, GAMEPAD_BUTTON_TRIANGLE, GAMEPAD_BUTTON_X, GAMEPAD_BUTTON_Y, GREEN_BITS, HAND_CURSOR, HAT_CENTERED, HAT_DOWN, HAT_LEFT, HAT_LEFT_DOWN, HAT_LEFT_UP, HAT_RIGHT, HAT_RIGHT_DOWN, HAT_RIGHT_UP, HAT_UP, HOVERED, HRESIZE_CURSOR, IBEAM_CURSOR, ICONIFIED, INVALID_ENUM, INVALID_VALUE, JOYSTICK_1, JOYSTICK_10, JOYSTICK_11, JOYSTICK_12, JOYSTICK_13, JOYSTICK_14, JOYSTICK_15, JOYSTICK_16, JOYSTICK_2, JOYSTICK_3, JOYSTICK_4, JOYSTICK_5, JOYSTICK_6, JOYSTICK_7, JOYSTICK_8, JOYSTICK_9, JOYSTICK_HAT_BUTTONS, JOYSTICK_LAST, KEY_0, KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, KEY_A, KEY_APOSTROPHE, KEY_B, KEY_BACKSLASH, KEY_BACKSPACE, KEY_C, KEY_CAPS_LOCK, KEY_COMMA, KEY_D, KEY_DELETE, KEY_DOWN, KEY_E, KEY_END, KEY_ENTER, KEY_EQUAL, KEY_ESCAPE, KEY_F, KEY_F1, KEY_F10, KEY_F11, KEY_F12, KEY_F13, KEY_F14, KEY_F15, KEY_F16, KEY_F17, KEY_F18, KEY_F19, KEY_F2, KEY_F20, KEY_F21, KEY_F22, KEY_F23, KEY_F24, KEY_F25, KEY_F3, KEY_F4, KEY_F5, KEY_F6, KEY_F7, KEY_F8, KEY_F9, KEY_G, KEY_GRAVE_ACCENT, KEY_H, KEY_HOME, KEY_I, KEY_INSERT, KEY_J, KEY_K, KEY_KP_0, KEY_KP_1, KEY_KP_2, KEY_KP_3, KEY_KP_4, KEY_KP_5, KEY_KP_6, KEY_KP_7, KEY_KP_8, KEY_KP_9, KEY_KP_ADD, KEY_KP_DECIMAL, KEY_KP_DIVIDE, KEY_KP_ENTER, KEY_KP_EQUAL, KEY_KP_MULTIPLY, KEY_KP_SUBTRACT, KEY_L, KEY_LAST, KEY_LEFT, KEY_LEFT_ALT, KEY_LEFT_BRACKET, KEY_LEFT_CONTROL, KEY_LEFT_SHIFT, KEY_LEFT_SUPER, KEY_M, KEY_MENU, KEY_MINUS, KEY_N, KEY_NUM_LOCK, KEY_O, KEY_P, KEY_PAGE_DOWN, KEY_PAGE_UP, KEY_PAUSE, KEY_PERIOD, KEY_PRINT_SCREEN, KEY_Q, KEY_R, KEY_RIGHT, KEY_RIGHT_ALT, KEY_RIGHT_BRACKET, KEY_RIGHT_CONTROL, KEY_RIGHT_SHIFT, KEY_RIGHT_SUPER, KEY_S, KEY_SCROLL_LOCK, KEY_SEMICOLON, KEY_SLASH, KEY_SPACE, KEY_T, KEY_TAB, KEY_U, KEY_UNKNOWN, KEY_UP, KEY_V, KEY_W, KEY_WORLD_1, KEY_WORLD_2, KEY_X, KEY_Y, KEY_Z, LOCK_KEY_MODS, LOSE_CONTEXT_ON_RESET, MAXIMIZED, MOD_ALT, MOD_CAPS_LOCK, MOD_CONTROL, MOD_NUM_LOCK, MOD_SHIFT, MOD_SUPER, MOUSE_BUTTON_1, MOUSE_BUTTON_2, MOUSE_BUTTON_3, MOUSE_BUTTON_4, MOUSE_BUTTON_5, MOUSE_BUTTON_6, MOUSE_BUTTON_7, MOUSE_BUTTON_8, MOUSE_BUTTON_LAST, MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE, MOUSE_BUTTON_RIGHT, MOUSE_PASSTHROUGH, NATIVE_CONTEXT_API, NO_API, NO_CURRENT_CONTEXT, NO_ERROR, NO_RESET_NOTIFICATION, NO_ROBUSTNESS, NO_WINDOW_CONTEXT, NOT_ALLOWED_CURSOR, NOT_INITIALIZED, OPENGL_ANY_PROFILE, OPENGL_API, OPENGL_COMPAT_PROFILE, OPENGL_CORE_PROFILE, OPENGL_DEBUG_CONTEXT, OPENGL_ES_API, OPENGL_FORWARD_COMPAT, OPENGL_PROFILE, OSMESA_CONTEXT_API, OUT_OF_MEMORY, PLATFORM, PLATFORM_COCOA, PLATFORM_ERROR, PLATFORM_NULL, PLATFORM_UNAVAILABLE, PLATFORM_WAYLAND, PLATFORM_WIN32, PLATFORM_X11, POINTING_HAND_CURSOR, POSITION_X, POSITION_Y, PRESS, RAW_MOUSE_MOTION, RED_BITS, REFRESH_RATE, RELEASE, RELEASE_BEHAVIOR_FLUSH, RELEASE_BEHAVIOR_NONE, REPEAT, RESIZABLE, RESIZE_ALL_CURSOR, RESIZE_EW_CURSOR, RESIZE_NESW_CURSOR, RESIZE_NS_CURSOR, RESIZE_NWSE_CURSOR, SAMPLES, SCALE_FRAMEBUFFER, SCALE_TO_MONITOR, SRGB_CAPABLE, STENCIL_BITS, STEREO, STICKY_KEYS, STICKY_MOUSE_BUTTONS, TRANSPARENT_FRAMEBUFFER, TRUE, VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, VERSION_UNAVAILABLE, VISIBLE, VRESIZE_CURSOR, WAYLAND_APP_ID, WAYLAND_DISABLE_LIBDECOR, WAYLAND_LIBDECOR, WAYLAND_PREFER_LIBDECOR, WIN32_KEYBOARD_MENU, WIN32_SHOWDEFAULT, X11_CLASS_NAME, X11_INSTANCE_NAME, X11_XCB_VULKAN_SURFACE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCursor
(@Nullable IGLFWimage image, int xhot, int yhot) createStandardCursor
(int shape) createWindow
(int width, int height, @Nullable BytePtr title, @Nullable GLFWmonitor monitor, @Nullable GLFWwindow share) int
createWindowSurface
(@Nullable VkInstance instance, @Nullable GLFWwindow window, @Nullable IVkAllocationCallbacks allocator, VkSurfaceKHR.Ptr surface) void
void
destroyCursor
(@Nullable GLFWcursor cursor) void
destroyWindow
(@Nullable GLFWwindow window) int
extensionSupported
(@Nullable BytePtr extension) void
focusWindow
(@Nullable GLFWwindow window) getClipboardString
(@Nullable GLFWwindow window) int
getCocoaMonitor
(@Nullable GLFWmonitor monitor) getCocoaView
(@Nullable GLFWwindow window) getCocoaWindow
(@Nullable GLFWwindow window) void
getCursorPos
(@Nullable GLFWwindow window, @Nullable DoublePtr xpos, @Nullable DoublePtr ypos) getEGLContext
(@Nullable GLFWwindow window) getEGLSurface
(@Nullable GLFWwindow window) int
getError
(@Nullable PointerPtr description) void
getFramebufferSize
(@Nullable GLFWwindow window, @Nullable IntPtr width, @Nullable IntPtr height) getGamepadName
(int jid) int
getGamepadState
(int jid, @Nullable IGLFWgamepadstate state) getGammaRamp
(@Nullable GLFWmonitor monitor) getGLXContext
(@Nullable GLFWwindow window) long
getGLXWindow
(@Nullable GLFWwindow window) int
getInputMode
(@Nullable GLFWwindow window, int mode) getInstanceProcAddress
(@Nullable VkInstance instance, @Nullable BytePtr procname) getJoystickAxes
(int jid, @Nullable IntPtr count) getJoystickButtons
(int jid, @Nullable IntPtr count) getJoystickGUID
(int jid) getJoystickHats
(int jid, @Nullable IntPtr count) getJoystickName
(int jid) getJoystickUserPointer
(int jid) int
getKey
(@Nullable GLFWwindow window, int key) getKeyName
(int key, int scancode) int
getKeyScancode
(int key) void
getMonitorContentScale
(@Nullable GLFWmonitor monitor, @Nullable FloatPtr xscale, @Nullable FloatPtr yscale) getMonitorName
(@Nullable GLFWmonitor monitor) void
getMonitorPhysicalSize
(@Nullable GLFWmonitor monitor, @Nullable IntPtr widthMM, @Nullable IntPtr heightMM) void
getMonitorPos
(@Nullable GLFWmonitor monitor, @Nullable IntPtr xpos, @Nullable IntPtr ypos) getMonitors
(@Nullable IntPtr count) getMonitorUserPointer
(@Nullable GLFWmonitor monitor) void
getMonitorWorkarea
(@Nullable GLFWmonitor monitor, @Nullable IntPtr xpos, @Nullable IntPtr ypos, @Nullable IntPtr width, @Nullable IntPtr height) int
getMouseButton
(@Nullable GLFWwindow window, int button) getNSGLContext
(@Nullable GLFWwindow window) int
getOSMesaColorBuffer
(@Nullable GLFWwindow window, @Nullable IntPtr width, @Nullable IntPtr height, @Nullable IntPtr format, @Nullable PointerPtr buffer) getOSMesaContext
(@Nullable GLFWwindow window) int
getOSMesaDepthBuffer
(@Nullable GLFWwindow window, @Nullable IntPtr width, @Nullable IntPtr height, @Nullable IntPtr bytesPerValue, @Nullable PointerPtr buffer) int
getPhysicalDevicePresentationSupport
(@Nullable VkInstance instance, @Nullable VkPhysicalDevice device, int queuefamily) int
getProcAddress
(@Nullable BytePtr procname) getRequiredInstanceExtensions
(@Nullable IntPtr count) double
getTime()
long
long
void
getVersion
(@Nullable IntPtr major, @Nullable IntPtr minor, @Nullable IntPtr rev) getVideoMode
(@Nullable GLFWmonitor monitor) getVideoModes
(@Nullable GLFWmonitor monitor, @Nullable IntPtr count) getWaylandMonitor
(@Nullable GLFWmonitor monitor) getWaylandWindow
(@Nullable GLFWwindow window) getWGLContext
(@Nullable GLFWwindow window) getWin32Adapter
(@Nullable GLFWmonitor monitor) getWin32Monitor
(@Nullable GLFWmonitor monitor) getWin32Window
(@Nullable GLFWwindow window) int
getWindowAttrib
(@Nullable GLFWwindow window, int attrib) void
getWindowContentScale
(@Nullable GLFWwindow window, @Nullable FloatPtr xscale, @Nullable FloatPtr yscale) void
getWindowFrameSize
(@Nullable GLFWwindow window, @Nullable IntPtr left, @Nullable IntPtr top, @Nullable IntPtr right, @Nullable IntPtr bottom) getWindowMonitor
(@Nullable GLFWwindow window) float
getWindowOpacity
(@Nullable GLFWwindow window) void
getWindowPos
(@Nullable GLFWwindow window, @Nullable IntPtr xpos, @Nullable IntPtr ypos) void
getWindowSize
(@Nullable GLFWwindow window, @Nullable IntPtr width, @Nullable IntPtr height) getWindowTitle
(@Nullable GLFWwindow window) getWindowUserPointer
(@Nullable GLFWwindow window) long
getX11Adapter
(@Nullable GLFWmonitor monitor) long
getX11Monitor
(@Nullable GLFWmonitor monitor) long
getX11Window
(@Nullable GLFWwindow window) void
hideWindow
(@Nullable GLFWwindow window) void
iconifyWindow
(@Nullable GLFWwindow window) int
init()
void
initAllocator
(@Nullable IGLFWallocator allocator) void
initHint
(int hint, int value) void
initVulkanLoader
(MemorySegment loader) int
joystickIsGamepad
(int jid) int
joystickPresent
(int jid) void
makeContextCurrent
(@Nullable GLFWwindow window) void
maximizeWindow
(@Nullable GLFWwindow window) int
platformSupported
(int platform) void
void
int
void
requestWindowAttention
(@Nullable GLFWwindow window) void
restoreWindow
(@Nullable GLFWwindow window) setCharCallback
(@Nullable GLFWwindow window, MemorySegment callback) setCharModsCallback
(@Nullable GLFWwindow window, MemorySegment callback) void
setClipboardString
(@Nullable GLFWwindow window, @Nullable BytePtr string) void
setCursor
(@Nullable GLFWwindow window, @Nullable GLFWcursor cursor) setCursorEnterCallback
(@Nullable GLFWwindow window, MemorySegment callback) void
setCursorPos
(@Nullable GLFWwindow window, double xpos, double ypos) setCursorPosCallback
(@Nullable GLFWwindow window, MemorySegment callback) setDropCallback
(@Nullable GLFWwindow window, MemorySegment callback) setErrorCallback
(MemorySegment callback) setFramebufferSizeCallback
(@Nullable GLFWwindow window, MemorySegment callback) void
setGamma
(@Nullable GLFWmonitor monitor, float gamma) void
setGammaRamp
(@Nullable GLFWmonitor monitor, @Nullable IGLFWgammaramp ramp) void
setInputMode
(@Nullable GLFWwindow window, int mode, int value) setJoystickCallback
(MemorySegment callback) void
setJoystickUserPointer
(int jid, MemorySegment pointer) setKeyCallback
(@Nullable GLFWwindow window, MemorySegment callback) setMonitorCallback
(MemorySegment callback) void
setMonitorUserPointer
(@Nullable GLFWmonitor monitor, MemorySegment pointer) setMouseButtonCallback
(@Nullable GLFWwindow window, MemorySegment callback) setScrollCallback
(@Nullable GLFWwindow window, MemorySegment callback) void
setTime
(double time) void
setWindowAspectRatio
(@Nullable GLFWwindow window, int numer, int denom) void
setWindowAttrib
(@Nullable GLFWwindow window, int attrib, int value) setWindowCloseCallback
(@Nullable GLFWwindow window, MemorySegment callback) setWindowContentScaleCallback
(@Nullable GLFWwindow window, MemorySegment callback) setWindowFocusCallback
(@Nullable GLFWwindow window, MemorySegment callback) void
setWindowIcon
(@Nullable GLFWwindow window, int count, @Nullable IGLFWimage images) setWindowIconifyCallback
(@Nullable GLFWwindow window, MemorySegment callback) setWindowMaximizeCallback
(@Nullable GLFWwindow window, MemorySegment callback) void
setWindowMonitor
(@Nullable GLFWwindow window, @Nullable GLFWmonitor monitor, int xpos, int ypos, int width, int height, int refreshRate) void
setWindowOpacity
(@Nullable GLFWwindow window, float opacity) void
setWindowPos
(@Nullable GLFWwindow window, int xpos, int ypos) setWindowPosCallback
(@Nullable GLFWwindow window, MemorySegment callback) setWindowRefreshCallback
(@Nullable GLFWwindow window, MemorySegment callback) void
setWindowShouldClose
(@Nullable GLFWwindow window, int value) void
setWindowSize
(@Nullable GLFWwindow window, int width, int height) setWindowSizeCallback
(@Nullable GLFWwindow window, MemorySegment callback) void
setWindowSizeLimits
(@Nullable GLFWwindow window, int minwidth, int minheight, int maxwidth, int maxheight) void
setWindowTitle
(@Nullable GLFWwindow window, @Nullable BytePtr title) void
setWindowUserPointer
(@Nullable GLFWwindow window, MemorySegment pointer) void
setX11SelectionString
(@Nullable BytePtr string) void
showWindow
(@Nullable GLFWwindow window) void
swapBuffers
(@Nullable GLFWwindow window) void
swapInterval
(int interval) void
int
updateGamepadMappings
(@Nullable BytePtr string) int
void
void
waitEventsTimeout
(double timeout) void
windowHint
(int hint, int value) void
windowHintString
(int hint, @Nullable BytePtr value) int
windowShouldClose
(@Nullable GLFWwindow window)
-
Field Details
-
SEGMENT$glfwCreateCursor
-
SEGMENT$glfwCreateStandardCursor
-
SEGMENT$glfwCreateWindow
-
SEGMENT$glfwCreateWindowSurface
-
SEGMENT$glfwDefaultWindowHints
-
SEGMENT$glfwDestroyCursor
-
SEGMENT$glfwDestroyWindow
-
SEGMENT$glfwExtensionSupported
-
SEGMENT$glfwFocusWindow
-
SEGMENT$glfwGetClipboardString
-
SEGMENT$glfwGetCocoaMonitor
-
SEGMENT$glfwGetCocoaView
-
SEGMENT$glfwGetCocoaWindow
-
SEGMENT$glfwGetCurrentContext
-
SEGMENT$glfwGetCursorPos
-
SEGMENT$glfwGetEGLContext
-
SEGMENT$glfwGetEGLDisplay
-
SEGMENT$glfwGetEGLSurface
-
SEGMENT$glfwGetError
-
SEGMENT$glfwGetFramebufferSize
-
SEGMENT$glfwGetGLXContext
-
SEGMENT$glfwGetGLXWindow
-
SEGMENT$glfwGetGamepadName
-
SEGMENT$glfwGetGamepadState
-
SEGMENT$glfwGetGammaRamp
-
SEGMENT$glfwGetInputMode
-
SEGMENT$glfwGetInstanceProcAddress
-
SEGMENT$glfwGetJoystickAxes
-
SEGMENT$glfwGetJoystickButtons
-
SEGMENT$glfwGetJoystickGUID
-
SEGMENT$glfwGetJoystickHats
-
SEGMENT$glfwGetJoystickName
-
SEGMENT$glfwGetJoystickUserPointer
-
SEGMENT$glfwGetKey
-
SEGMENT$glfwGetKeyName
-
SEGMENT$glfwGetKeyScancode
-
SEGMENT$glfwGetMonitorContentScale
-
SEGMENT$glfwGetMonitorName
-
SEGMENT$glfwGetMonitorPhysicalSize
-
SEGMENT$glfwGetMonitorPos
-
SEGMENT$glfwGetMonitorUserPointer
-
SEGMENT$glfwGetMonitorWorkarea
-
SEGMENT$glfwGetMonitors
-
SEGMENT$glfwGetMouseButton
-
SEGMENT$glfwGetNSGLContext
-
SEGMENT$glfwGetOSMesaColorBuffer
-
SEGMENT$glfwGetOSMesaContext
-
SEGMENT$glfwGetOSMesaDepthBuffer
-
SEGMENT$glfwGetPhysicalDevicePresentationSupport
-
SEGMENT$glfwGetPlatform
-
SEGMENT$glfwGetPrimaryMonitor
-
SEGMENT$glfwGetProcAddress
-
SEGMENT$glfwGetRequiredInstanceExtensions
-
SEGMENT$glfwGetTime
-
SEGMENT$glfwGetTimerFrequency
-
SEGMENT$glfwGetTimerValue
-
SEGMENT$glfwGetVersion
-
SEGMENT$glfwGetVersionString
-
SEGMENT$glfwGetVideoMode
-
SEGMENT$glfwGetVideoModes
-
SEGMENT$glfwGetWGLContext
-
SEGMENT$glfwGetWaylandDisplay
-
SEGMENT$glfwGetWaylandMonitor
-
SEGMENT$glfwGetWaylandWindow
-
SEGMENT$glfwGetWin32Adapter
-
SEGMENT$glfwGetWin32Monitor
-
SEGMENT$glfwGetWin32Window
-
SEGMENT$glfwGetWindowAttrib
-
SEGMENT$glfwGetWindowContentScale
-
SEGMENT$glfwGetWindowFrameSize
-
SEGMENT$glfwGetWindowMonitor
-
SEGMENT$glfwGetWindowOpacity
-
SEGMENT$glfwGetWindowPos
-
SEGMENT$glfwGetWindowSize
-
SEGMENT$glfwGetWindowTitle
-
SEGMENT$glfwGetWindowUserPointer
-
SEGMENT$glfwGetX11Adapter
-
SEGMENT$glfwGetX11Display
-
SEGMENT$glfwGetX11Monitor
-
SEGMENT$glfwGetX11SelectionString
-
SEGMENT$glfwGetX11Window
-
SEGMENT$glfwHideWindow
-
SEGMENT$glfwIconifyWindow
-
SEGMENT$glfwInit
-
SEGMENT$glfwInitAllocator
-
SEGMENT$glfwInitHint
-
SEGMENT$glfwInitVulkanLoader
-
SEGMENT$glfwJoystickIsGamepad
-
SEGMENT$glfwJoystickPresent
-
SEGMENT$glfwMakeContextCurrent
-
SEGMENT$glfwMaximizeWindow
-
SEGMENT$glfwPlatformSupported
-
SEGMENT$glfwPollEvents
-
SEGMENT$glfwPostEmptyEvent
-
SEGMENT$glfwRawMouseMotionSupported
-
SEGMENT$glfwRequestWindowAttention
-
SEGMENT$glfwRestoreWindow
-
SEGMENT$glfwSetCharCallback
-
SEGMENT$glfwSetCharModsCallback
-
SEGMENT$glfwSetClipboardString
-
SEGMENT$glfwSetCursor
-
SEGMENT$glfwSetCursorEnterCallback
-
SEGMENT$glfwSetCursorPos
-
SEGMENT$glfwSetCursorPosCallback
-
SEGMENT$glfwSetDropCallback
-
SEGMENT$glfwSetErrorCallback
-
SEGMENT$glfwSetFramebufferSizeCallback
-
SEGMENT$glfwSetGamma
-
SEGMENT$glfwSetGammaRamp
-
SEGMENT$glfwSetInputMode
-
SEGMENT$glfwSetJoystickCallback
-
SEGMENT$glfwSetJoystickUserPointer
-
SEGMENT$glfwSetKeyCallback
-
SEGMENT$glfwSetMonitorCallback
-
SEGMENT$glfwSetMonitorUserPointer
-
SEGMENT$glfwSetMouseButtonCallback
-
SEGMENT$glfwSetScrollCallback
-
SEGMENT$glfwSetTime
-
SEGMENT$glfwSetWindowAspectRatio
-
SEGMENT$glfwSetWindowAttrib
-
SEGMENT$glfwSetWindowCloseCallback
-
SEGMENT$glfwSetWindowContentScaleCallback
-
SEGMENT$glfwSetWindowFocusCallback
-
SEGMENT$glfwSetWindowIcon
-
SEGMENT$glfwSetWindowIconifyCallback
-
SEGMENT$glfwSetWindowMaximizeCallback
-
SEGMENT$glfwSetWindowMonitor
-
SEGMENT$glfwSetWindowOpacity
-
SEGMENT$glfwSetWindowPos
-
SEGMENT$glfwSetWindowPosCallback
-
SEGMENT$glfwSetWindowRefreshCallback
-
SEGMENT$glfwSetWindowShouldClose
-
SEGMENT$glfwSetWindowSize
-
SEGMENT$glfwSetWindowSizeCallback
-
SEGMENT$glfwSetWindowSizeLimits
-
SEGMENT$glfwSetWindowTitle
-
SEGMENT$glfwSetWindowUserPointer
-
SEGMENT$glfwSetX11SelectionString
-
SEGMENT$glfwShowWindow
-
SEGMENT$glfwSwapBuffers
-
SEGMENT$glfwSwapInterval
-
SEGMENT$glfwTerminate
-
SEGMENT$glfwUpdateGamepadMappings
-
SEGMENT$glfwVulkanSupported
-
SEGMENT$glfwWaitEvents
-
SEGMENT$glfwWaitEventsTimeout
-
SEGMENT$glfwWindowHint
-
SEGMENT$glfwWindowHintString
-
SEGMENT$glfwWindowShouldClose
-
HANDLE$glfwCreateCursor
-
HANDLE$glfwCreateStandardCursor
-
HANDLE$glfwCreateWindow
-
HANDLE$glfwCreateWindowSurface
-
HANDLE$glfwDefaultWindowHints
-
HANDLE$glfwDestroyCursor
-
HANDLE$glfwDestroyWindow
-
HANDLE$glfwExtensionSupported
-
HANDLE$glfwFocusWindow
-
HANDLE$glfwGetClipboardString
-
HANDLE$glfwGetCocoaMonitor
-
HANDLE$glfwGetCocoaView
-
HANDLE$glfwGetCocoaWindow
-
HANDLE$glfwGetCurrentContext
-
HANDLE$glfwGetCursorPos
-
HANDLE$glfwGetEGLContext
-
HANDLE$glfwGetEGLDisplay
-
HANDLE$glfwGetEGLSurface
-
HANDLE$glfwGetError
-
HANDLE$glfwGetFramebufferSize
-
HANDLE$glfwGetGLXContext
-
HANDLE$glfwGetGLXWindow
-
HANDLE$glfwGetGamepadName
-
HANDLE$glfwGetGamepadState
-
HANDLE$glfwGetGammaRamp
-
HANDLE$glfwGetInputMode
-
HANDLE$glfwGetInstanceProcAddress
-
HANDLE$glfwGetJoystickAxes
-
HANDLE$glfwGetJoystickButtons
-
HANDLE$glfwGetJoystickGUID
-
HANDLE$glfwGetJoystickHats
-
HANDLE$glfwGetJoystickName
-
HANDLE$glfwGetJoystickUserPointer
-
HANDLE$glfwGetKey
-
HANDLE$glfwGetKeyName
-
HANDLE$glfwGetKeyScancode
-
HANDLE$glfwGetMonitorContentScale
-
HANDLE$glfwGetMonitorName
-
HANDLE$glfwGetMonitorPhysicalSize
-
HANDLE$glfwGetMonitorPos
-
HANDLE$glfwGetMonitorUserPointer
-
HANDLE$glfwGetMonitorWorkarea
-
HANDLE$glfwGetMonitors
-
HANDLE$glfwGetMouseButton
-
HANDLE$glfwGetNSGLContext
-
HANDLE$glfwGetOSMesaColorBuffer
-
HANDLE$glfwGetOSMesaContext
-
HANDLE$glfwGetOSMesaDepthBuffer
-
HANDLE$glfwGetPhysicalDevicePresentationSupport
-
HANDLE$glfwGetPlatform
-
HANDLE$glfwGetPrimaryMonitor
-
HANDLE$glfwGetProcAddress
-
HANDLE$glfwGetRequiredInstanceExtensions
-
HANDLE$glfwGetTime
-
HANDLE$glfwGetTimerFrequency
-
HANDLE$glfwGetTimerValue
-
HANDLE$glfwGetVersion
-
HANDLE$glfwGetVersionString
-
HANDLE$glfwGetVideoMode
-
HANDLE$glfwGetVideoModes
-
HANDLE$glfwGetWGLContext
-
HANDLE$glfwGetWaylandDisplay
-
HANDLE$glfwGetWaylandMonitor
-
HANDLE$glfwGetWaylandWindow
-
HANDLE$glfwGetWin32Adapter
-
HANDLE$glfwGetWin32Monitor
-
HANDLE$glfwGetWin32Window
-
HANDLE$glfwGetWindowAttrib
-
HANDLE$glfwGetWindowContentScale
-
HANDLE$glfwGetWindowFrameSize
-
HANDLE$glfwGetWindowMonitor
-
HANDLE$glfwGetWindowOpacity
-
HANDLE$glfwGetWindowPos
-
HANDLE$glfwGetWindowSize
-
HANDLE$glfwGetWindowTitle
-
HANDLE$glfwGetWindowUserPointer
-
HANDLE$glfwGetX11Adapter
-
HANDLE$glfwGetX11Display
-
HANDLE$glfwGetX11Monitor
-
HANDLE$glfwGetX11SelectionString
-
HANDLE$glfwGetX11Window
-
HANDLE$glfwHideWindow
-
HANDLE$glfwIconifyWindow
-
HANDLE$glfwInit
-
HANDLE$glfwInitAllocator
-
HANDLE$glfwInitHint
-
HANDLE$glfwInitVulkanLoader
-
HANDLE$glfwJoystickIsGamepad
-
HANDLE$glfwJoystickPresent
-
HANDLE$glfwMakeContextCurrent
-
HANDLE$glfwMaximizeWindow
-
HANDLE$glfwPlatformSupported
-
HANDLE$glfwPollEvents
-
HANDLE$glfwPostEmptyEvent
-
HANDLE$glfwRawMouseMotionSupported
-
HANDLE$glfwRequestWindowAttention
-
HANDLE$glfwRestoreWindow
-
HANDLE$glfwSetCharCallback
-
HANDLE$glfwSetCharModsCallback
-
HANDLE$glfwSetClipboardString
-
HANDLE$glfwSetCursor
-
HANDLE$glfwSetCursorEnterCallback
-
HANDLE$glfwSetCursorPos
-
HANDLE$glfwSetCursorPosCallback
-
HANDLE$glfwSetDropCallback
-
HANDLE$glfwSetErrorCallback
-
HANDLE$glfwSetFramebufferSizeCallback
-
HANDLE$glfwSetGamma
-
HANDLE$glfwSetGammaRamp
-
HANDLE$glfwSetInputMode
-
HANDLE$glfwSetJoystickCallback
-
HANDLE$glfwSetJoystickUserPointer
-
HANDLE$glfwSetKeyCallback
-
HANDLE$glfwSetMonitorCallback
-
HANDLE$glfwSetMonitorUserPointer
-
HANDLE$glfwSetMouseButtonCallback
-
HANDLE$glfwSetScrollCallback
-
HANDLE$glfwSetTime
-
HANDLE$glfwSetWindowAspectRatio
-
HANDLE$glfwSetWindowAttrib
-
HANDLE$glfwSetWindowCloseCallback
-
HANDLE$glfwSetWindowContentScaleCallback
-
HANDLE$glfwSetWindowFocusCallback
-
HANDLE$glfwSetWindowIcon
-
HANDLE$glfwSetWindowIconifyCallback
-
HANDLE$glfwSetWindowMaximizeCallback
-
HANDLE$glfwSetWindowMonitor
-
HANDLE$glfwSetWindowOpacity
-
HANDLE$glfwSetWindowPos
-
HANDLE$glfwSetWindowPosCallback
-
HANDLE$glfwSetWindowRefreshCallback
-
HANDLE$glfwSetWindowShouldClose
-
HANDLE$glfwSetWindowSize
-
HANDLE$glfwSetWindowSizeCallback
-
HANDLE$glfwSetWindowSizeLimits
-
HANDLE$glfwSetWindowTitle
-
HANDLE$glfwSetWindowUserPointer
-
HANDLE$glfwSetX11SelectionString
-
HANDLE$glfwShowWindow
-
HANDLE$glfwSwapBuffers
-
HANDLE$glfwSwapInterval
-
HANDLE$glfwTerminate
-
HANDLE$glfwUpdateGamepadMappings
-
HANDLE$glfwVulkanSupported
-
HANDLE$glfwWaitEvents
-
HANDLE$glfwWaitEventsTimeout
-
HANDLE$glfwWindowHint
-
HANDLE$glfwWindowHintString
-
HANDLE$glfwWindowShouldClose
-
-
Constructor Details
-
GLFW
-
-
Method Details
-
createCursor
- Returns:
The handle of the created cursor, or
NULL
if aninvalid reference
error
- Since:
- Added in version 3.1.
-
createStandardCursor
- Returns:
A new cursor ready to use or
NULL
if aninvalid reference
error
- Since:
- Added in version 3.1.
-
createWindow
public GLFWwindow createWindow(int width, int height, @Nullable @Nullable BytePtr title, @Nullable @Nullable GLFWmonitor monitor, @Nullable @Nullable GLFWwindow share) - Returns:
The handle of the created window, or
NULL
if aninvalid reference
error
- Since:
- Added in version 3.0. Replaces
glfwOpenWindow
.
-
createWindowSurface
@EnumType(VkResult.class) public int createWindowSurface(@Nullable @Nullable VkInstance instance, @Nullable @Nullable GLFWwindow window, @Nullable @Pointer @Nullable IVkAllocationCallbacks allocator, @Nullable @Pointer VkSurfaceKHR.Ptr surface) - Returns:
VK_SUCCESS
if successful, or a Vulkan error code if aninvalid reference
error
- Since:
- Added in version 3.2.
-
defaultWindowHints
public void defaultWindowHints()- Since:
- Added in version 3.0.
-
destroyCursor
- Since:
- Added in version 3.1.
-
destroyWindow
- Since:
- Added in version 3.0. Replaces
glfwCloseWindow
.
-
extensionSupported
- Returns:
GLFW_TRUE
if the extension is available, orGLFW_FALSE
otherwise.- Since:
- Added in version 1.0.
-
focusWindow
- Since:
- Added in version 3.2.
-
getClipboardString
- Returns:
The contents of the clipboard as a UTF-8 encoded string, or
NULL
if aninvalid reference
error
- Since:
- Added in version 3.0.
-
getCocoaMonitor
@NativeType("CGDirectDisplayID") @Unsigned public int getCocoaMonitor(@Nullable @Nullable GLFWmonitor monitor) - Returns:
The
CGDirectDisplayID
of the specified monitor, orkCGNullDirectDisplay
if aninvalid reference
error
- Since:
- Added in version 3.1.
-
getCocoaView
- Returns:
The
NSView
of the specified window, ornil
if aninvalid reference
error
- Since:
- Added in version 3.4.
-
getCocoaWindow
- Returns:
The
NSWindow
of the specified window, ornil
if aninvalid reference
error
- Since:
- Added in version 3.0.
-
getCurrentContext
- Returns:
- The window whose context is current, or
NULL
if no window's context is current. - Since:
- Added in version 3.0.
-
getCursorPos
public void getCursorPos(@Nullable @Nullable GLFWwindow window, @Nullable @Nullable DoublePtr xpos, @Nullable @Nullable DoublePtr ypos) - Since:
- Added in version 3.0. Replaces
glfwGetMousePos
.
-
getEGLContext
@Pointer(comment="EGLContext") public MemorySegment getEGLContext(@Nullable @Nullable GLFWwindow window) - Returns:
The
EGLContext
of the specified window, orEGL_NO_CONTEXT
if aninvalid reference
error
- Since:
- Added in version 3.0.
-
getEGLDisplay
- Returns:
The
EGLDisplay
used by GLFW, orEGL_NO_DISPLAY
if aninvalid reference
error
- Since:
- Added in version 3.0.
-
getEGLSurface
@Pointer(comment="EGLSurface") public MemorySegment getEGLSurface(@Nullable @Nullable GLFWwindow window) - Returns:
The
EGLSurface
of the specified window, orEGL_NO_SURFACE
if aninvalid reference
error
- Since:
- Added in version 3.0.
-
getError
- Returns:
- The last error code for the calling thread, or @ref GLFW_NO_ERROR (zero).
- Since:
- Added in version 3.3.
-
getFramebufferSize
public void getFramebufferSize(@Nullable @Nullable GLFWwindow window, @Nullable @Nullable IntPtr width, @Nullable @Nullable IntPtr height) - Since:
- Added in version 3.0.
-
getGLXContext
@Pointer(comment="GLXContext") public MemorySegment getGLXContext(@Nullable @Nullable GLFWwindow window) - Returns:
The
GLXContext
of the specified window, orNULL
if aninvalid reference
error
- Since:
- Added in version 3.0.
-
getGLXWindow
- Returns:
The
GLXWindow
of the specified window, orNone
if aninvalid reference
error
- Since:
- Added in version 3.2.
-
getGamepadName
- Returns:
The UTF-8 encoded name of the gamepad, or
NULL
if the joystick is not present, does not have a mapping or aninvalid reference
error
- Since:
- Added in version 3.3.
-
getGamepadState
- Returns:
GLFW_TRUE
if successful, orGLFW_FALSE
if no joystick is connected, it has no gamepad mapping or aninvalid reference
error
occurred.
- Since:
- Added in version 3.3.
-
getGammaRamp
- Returns:
The current gamma ramp, or
NULL
if aninvalid reference
error
- Since:
- Added in version 3.0.
-
getInputMode
- Since:
- Added in version 3.0.
-
getInstanceProcAddress
@Pointer(comment="GLFWvkproc") public MemorySegment getInstanceProcAddress(@Nullable @Nullable VkInstance instance, @Nullable @Nullable BytePtr procname) - Returns:
The address of the function, or
NULL
if aninvalid reference
error
- Since:
- Added in version 3.2.
-
getJoystickAxes
-
getJoystickButtons
-
getJoystickGUID
- Returns:
The UTF-8 encoded GUID of the joystick, or
NULL
if the joystick is not present or aninvalid reference
error
- Since:
- Added in version 3.3.
-
getJoystickHats
-
getJoystickName
- Returns:
The UTF-8 encoded name of the joystick, or
NULL
if the joystick is not present or aninvalid reference
error
- Since:
- Added in version 3.0.
-
getJoystickUserPointer
- Since:
- Added in version 3.3.
-
getKey
- Returns:
- One of
GLFW_PRESS
orGLFW_RELEASE
. - Since:
- Added in version 1.0.
-
getKeyName
- Returns:
- The UTF-8 encoded, layout-specific name of the key, or
NULL
. - Since:
- Added in version 3.2.
-
getKeyScancode
public int getKeyScancode(int key) - Returns:
The platform-specific scancode for the key, or
-1
if the key is not supported on the current platform or aninvalid reference
error
occurred.
- Since:
- Added in version 3.3.
-
getMonitorContentScale
public void getMonitorContentScale(@Nullable @Nullable GLFWmonitor monitor, @Nullable @Nullable FloatPtr xscale, @Nullable @Nullable FloatPtr yscale) - Since:
- Added in version 3.3.
-
getMonitorName
- Returns:
The UTF-8 encoded name of the monitor, or
NULL
if aninvalid reference
error
- Since:
- Added in version 3.0.
-
getMonitorPhysicalSize
public void getMonitorPhysicalSize(@Nullable @Nullable GLFWmonitor monitor, @Nullable @Nullable IntPtr widthMM, @Nullable @Nullable IntPtr heightMM) - Since:
- Added in version 3.0.
-
getMonitorPos
public void getMonitorPos(@Nullable @Nullable GLFWmonitor monitor, @Nullable @Nullable IntPtr xpos, @Nullable @Nullable IntPtr ypos) - Since:
- Added in version 3.0.
-
getMonitorUserPointer
@Pointer(comment="void*") public MemorySegment getMonitorUserPointer(@Nullable @Nullable GLFWmonitor monitor) - Since:
- Added in version 3.3.
-
getMonitorWorkarea
public void getMonitorWorkarea(@Nullable @Nullable GLFWmonitor monitor, @Nullable @Nullable IntPtr xpos, @Nullable @Nullable IntPtr ypos, @Nullable @Nullable IntPtr width, @Nullable @Nullable IntPtr height) - Since:
- Added in version 3.3.
-
getMonitors
- Returns:
An array of monitor handles, or
NULL
if no monitors were found or if aninvalid reference
error
- Since:
- Added in version 3.0.
-
getMouseButton
- Returns:
- One of
GLFW_PRESS
orGLFW_RELEASE
. - Since:
- Added in version 1.0.
-
getNSGLContext
- Returns:
The
NSOpenGLContext
of the specified window, ornil
if aninvalid reference
error
- Since:
- Added in version 3.0.
-
getOSMesaColorBuffer
public int getOSMesaColorBuffer(@Nullable @Nullable GLFWwindow window, @Nullable @Nullable IntPtr width, @Nullable @Nullable IntPtr height, @Nullable @Nullable IntPtr format, @Nullable @Nullable PointerPtr buffer) - Returns:
GLFW_TRUE
if successful, orGLFW_FALSE
if aninvalid reference
error
- Since:
- Added in version 3.3.
-
getOSMesaContext
@Pointer(comment="OSMesaContext") public MemorySegment getOSMesaContext(@Nullable @Nullable GLFWwindow window) - Returns:
The
OSMesaContext
of the specified window, orNULL
if aninvalid reference
error
- Since:
- Added in version 3.3.
-
getOSMesaDepthBuffer
public int getOSMesaDepthBuffer(@Nullable @Nullable GLFWwindow window, @Nullable @Nullable IntPtr width, @Nullable @Nullable IntPtr height, @Nullable @Nullable IntPtr bytesPerValue, @Nullable @Nullable PointerPtr buffer) - Returns:
GLFW_TRUE
if successful, orGLFW_FALSE
if aninvalid reference
error
- Since:
- Added in version 3.3.
-
getPhysicalDevicePresentationSupport
public int getPhysicalDevicePresentationSupport(@Nullable @Nullable VkInstance instance, @Nullable @Nullable VkPhysicalDevice device, @Unsigned int queuefamily) - Returns:
GLFW_TRUE
if the queue family supports presentation, orGLFW_FALSE
otherwise.- Since:
- Added in version 3.2.
-
getPlatform
public int getPlatform()- Returns:
- The currently selected platform, or zero if an error occurred.
- Since:
- Added in version 3.4.
-
getPrimaryMonitor
- Returns:
The primary monitor, or
NULL
if no monitors were found or if aninvalid reference
error
- Since:
- Added in version 3.0.
-
getProcAddress
@Pointer(comment="GLFWglproc") public MemorySegment getProcAddress(@Nullable @Nullable BytePtr procname) - Returns:
The address of the function, or
NULL
if aninvalid reference
error
- Since:
- Added in version 1.0.
-
getRequiredInstanceExtensions
- Returns:
An array of ASCII encoded extension names, or
NULL
if aninvalid reference
error
- Since:
- Added in version 3.2.
-
getTime
public double getTime()- Returns:
The current time, in seconds, or zero if an
invalid reference
error
- Since:
- Added in version 1.0.
-
getTimerFrequency
- Returns:
The frequency of the timer, in Hz, or zero if an
invalid reference
error
- Since:
- Added in version 3.2.
-
getTimerValue
- Returns:
The value of the timer, or zero if an
invalid reference
error
- Since:
- Added in version 3.2.
-
getVersion
-
getVersionString
- Returns:
- The ASCII encoded GLFW version string.
- Since:
- Added in version 3.0.
-
getVideoMode
- Returns:
The current mode of the monitor, or
NULL
if aninvalid reference
error
- Since:
- Added in version 3.0. Replaces
glfwGetDesktopMode
.
-
getVideoModes
@Pointer public IGLFWvidmode getVideoModes(@Nullable @Nullable GLFWmonitor monitor, @Nullable @Nullable IntPtr count) - Returns:
An array of video modes, or
NULL
if aninvalid reference
error
- Since:
- Added in version 1.0.
-
getWGLContext
- Returns:
The
HGLRC
of the specified window, orNULL
if aninvalid reference
error
-
getWaylandDisplay
- Returns:
The
struct wl_display*
used by GLFW, orNULL
if aninvalid reference
error
- Since:
- Added in version 3.2.
-
getWaylandMonitor
@Pointer(comment="void*") public MemorySegment getWaylandMonitor(@Nullable @Nullable GLFWmonitor monitor) - Returns:
The
struct wl_output*
of the specified monitor, orNULL
if aninvalid reference
error
- Since:
- Added in version 3.2.
-
getWaylandWindow
- Returns:
The main
struct wl_surface*
of the specified window, orNULL
if aninvalid reference
error
- Since:
- Added in version 3.2.
-
getWin32Adapter
- Returns:
The UTF-8 encoded adapter device name (for example
\\.\DISPLAY1
) of the specified monitor, orNULL
if aninvalid reference
error
occurred.
- Since:
- Added in version 3.1.
-
getWin32Monitor
- Returns:
The UTF-8 encoded display device name (for example
\\.\DISPLAY1\Monitor0
) of the specified monitor, orNULL
if aninvalid reference
error
- Since:
- Added in version 3.1.
-
getWin32Window
- Returns:
The
HWND
of the specified window, orNULL
if aninvalid reference
error
-
getWindowAttrib
- Returns:
The value of the attribute, or zero if an
invalid reference
error
- Since:
- Added in version 3.0. Replaces
glfwGetWindowParam
andglfwGetGLVersion
.
-
getWindowContentScale
public void getWindowContentScale(@Nullable @Nullable GLFWwindow window, @Nullable @Nullable FloatPtr xscale, @Nullable @Nullable FloatPtr yscale) - Since:
- Added in version 3.3.
-
getWindowFrameSize
public void getWindowFrameSize(@Nullable @Nullable GLFWwindow window, @Nullable @Nullable IntPtr left, @Nullable @Nullable IntPtr top, @Nullable @Nullable IntPtr right, @Nullable @Nullable IntPtr bottom) - Since:
- Added in version 3.1.
-
getWindowMonitor
- Returns:
The monitor, or
NULL
if the window is in windowed mode or aninvalid reference
error
- Since:
- Added in version 3.0.
-
getWindowOpacity
- Returns:
- The opacity value of the specified window.
- Since:
- Added in version 3.3.
-
getWindowPos
public void getWindowPos(@Nullable @Nullable GLFWwindow window, @Nullable @Nullable IntPtr xpos, @Nullable @Nullable IntPtr ypos) - Since:
- Added in version 3.0.
-
getWindowSize
public void getWindowSize(@Nullable @Nullable GLFWwindow window, @Nullable @Nullable IntPtr width, @Nullable @Nullable IntPtr height) - Since:
- Added in version 1.0.
-
getWindowTitle
- Returns:
The UTF-8 encoded window title, or
NULL
if aninvalid reference
error
- Since:
- Added in version 3.4.
-
getWindowUserPointer
@Pointer(comment="void*") public MemorySegment getWindowUserPointer(@Nullable @Nullable GLFWwindow window) - Since:
- Added in version 3.0.
-
getX11Adapter
- Returns:
The
RRCrtc
of the specified monitor, orNone
if aninvalid reference
error
- Since:
- Added in version 3.1.
-
getX11Display
- Returns:
The
Display
used by GLFW, orNULL
if aninvalid reference
error
- Since:
- Added in version 3.0.
-
getX11Monitor
- Returns:
The
RROutput
of the specified monitor, orNone
if aninvalid reference
error
- Since:
- Added in version 3.1.
-
getX11SelectionString
- Returns:
The contents of the selection as a UTF-8 encoded string, or
NULL
if aninvalid reference
error
- Since:
- Added in version 3.3.
-
getX11Window
- Returns:
The
Window
of the specified window, orNone
if aninvalid reference
error
- Since:
- Added in version 3.0.
-
hideWindow
- Since:
- Added in version 3.0.
-
iconifyWindow
- Since:
- Added in version 2.1.
-
init
public int init()- Returns:
GLFW_TRUE
if successful, orGLFW_FALSE
if aninvalid reference
error
- Since:
- Added in version 1.0.
-
initAllocator
- Since:
- Added in version 3.4.
-
initHint
public void initHint(int hint, int value) - Since:
- Added in version 3.3.
-
initVulkanLoader
-
joystickIsGamepad
public int joystickIsGamepad(int jid) - Returns:
GLFW_TRUE
if a joystick is both present and has a gamepad mapping, orGLFW_FALSE
otherwise.- Since:
- Added in version 3.3.
-
joystickPresent
public int joystickPresent(int jid) - Returns:
GLFW_TRUE
if the joystick is present, orGLFW_FALSE
otherwise.- Since:
- Added in version 3.0. Replaces
glfwGetJoystickParam
.
-
makeContextCurrent
- Since:
- Added in version 3.0.
-
maximizeWindow
- Since:
- Added in GLFW 3.2.
-
platformSupported
public int platformSupported(int platform) - Returns:
GLFW_TRUE
if the platform is supported, orGLFW_FALSE
otherwise.- Since:
- Added in version 3.4.
-
pollEvents
public void pollEvents()- Since:
- Added in version 1.0.
-
postEmptyEvent
public void postEmptyEvent()- Since:
- Added in version 3.1.
-
rawMouseMotionSupported
public int rawMouseMotionSupported()- Returns:
GLFW_TRUE
if raw mouse motion is supported on the current machine, orGLFW_FALSE
otherwise.- Since:
- Added in version 3.3.
-
requestWindowAttention
- Since:
- Added in version 3.3.
-
restoreWindow
- Since:
- Added in version 2.1.
-
setCharCallback
@Pointer(comment="GLFWcharfun") public MemorySegment setCharCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWcharfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setCharModsCallback
@Pointer(comment="GLFWcharmodsfun") public MemorySegment setCharModsCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWcharmodsfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or aninvalid reference
error
-
setClipboardString
public void setClipboardString(@Nullable @Nullable GLFWwindow window, @Nullable @Nullable BytePtr string) - Since:
- Added in version 3.0.
-
setCursor
- Since:
- Added in version 3.1.
-
setCursorEnterCallback
@Pointer(comment="GLFWcursorenterfun") public MemorySegment setCursorEnterCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWcursorenterfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setCursorPos
- Since:
- Added in version 3.0. Replaces
glfwSetMousePos
.
-
setCursorPosCallback
@Pointer(comment="GLFWcursorposfun") public MemorySegment setCursorPosCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWcursorposfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setDropCallback
@Pointer(comment="GLFWdropfun") public MemorySegment setDropCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWdropfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setErrorCallback
@Pointer(comment="GLFWerrorfun") public MemorySegment setErrorCallback(@Pointer(comment="GLFWerrorfun") MemorySegment callback) - Returns:
- The previously set callback, or
NULL
if no callback was set.
-
setFramebufferSizeCallback
@Pointer(comment="GLFWframebuffersizefun") public MemorySegment setFramebufferSizeCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWframebuffersizefun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setGamma
- Since:
- Added in version 3.0.
-
setGammaRamp
public void setGammaRamp(@Nullable @Nullable GLFWmonitor monitor, @Nullable @Pointer @Nullable IGLFWgammaramp ramp) - Since:
- Added in version 3.0.
-
setInputMode
- Since:
- Added in version 3.0. Replaces
glfwEnable
andglfwDisable
.
-
setJoystickCallback
@Pointer(comment="GLFWjoystickfun") public MemorySegment setJoystickCallback(@Pointer(comment="GLFWjoystickfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setJoystickUserPointer
- Since:
- Added in version 3.3.
-
setKeyCallback
@Pointer(comment="GLFWkeyfun") public MemorySegment setKeyCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWkeyfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setMonitorCallback
@Pointer(comment="GLFWmonitorfun") public MemorySegment setMonitorCallback(@Pointer(comment="GLFWmonitorfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setMonitorUserPointer
public void setMonitorUserPointer(@Nullable @Nullable GLFWmonitor monitor, @Pointer(comment="void*") MemorySegment pointer) - Since:
- Added in version 3.3.
-
setMouseButtonCallback
@Pointer(comment="GLFWmousebuttonfun") public MemorySegment setMouseButtonCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWmousebuttonfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setScrollCallback
@Pointer(comment="GLFWscrollfun") public MemorySegment setScrollCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWscrollfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setTime
public void setTime(double time) - Since:
- Added in version 2.2.
-
setWindowAspectRatio
- Since:
- Added in version 3.2.
-
setWindowAttrib
- Since:
- Added in version 3.3.
-
setWindowCloseCallback
@Pointer(comment="GLFWwindowclosefun") public MemorySegment setWindowCloseCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWwindowclosefun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setWindowContentScaleCallback
@Pointer(comment="GLFWwindowcontentscalefun") public MemorySegment setWindowContentScaleCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWwindowcontentscalefun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setWindowFocusCallback
@Pointer(comment="GLFWwindowfocusfun") public MemorySegment setWindowFocusCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWwindowfocusfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setWindowIcon
public void setWindowIcon(@Nullable @Nullable GLFWwindow window, int count, @Nullable @Pointer @Nullable IGLFWimage images) - Since:
- Added in version 3.2.
-
setWindowIconifyCallback
@Pointer(comment="GLFWwindowiconifyfun") public MemorySegment setWindowIconifyCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWwindowiconifyfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setWindowMaximizeCallback
@Pointer(comment="GLFWwindowmaximizefun") public MemorySegment setWindowMaximizeCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWwindowmaximizefun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setWindowMonitor
public void setWindowMonitor(@Nullable @Nullable GLFWwindow window, @Nullable @Nullable GLFWmonitor monitor, int xpos, int ypos, int width, int height, int refreshRate) - Since:
- Added in version 3.2.
-
setWindowOpacity
- Since:
- Added in version 3.3.
-
setWindowPos
- Since:
- Added in version 1.0.
-
setWindowPosCallback
@Pointer(comment="GLFWwindowposfun") public MemorySegment setWindowPosCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWwindowposfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setWindowRefreshCallback
@Pointer(comment="GLFWwindowrefreshfun") public MemorySegment setWindowRefreshCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWwindowrefreshfun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setWindowShouldClose
- Since:
- Added in version 3.0.
-
setWindowSize
- Since:
- Added in version 1.0.
-
setWindowSizeCallback
@Pointer(comment="GLFWwindowsizefun") public MemorySegment setWindowSizeCallback(@Nullable @Nullable GLFWwindow window, @Pointer(comment="GLFWwindowsizefun") MemorySegment callback) - Returns:
The previously set callback, or
NULL
if no callback was set or the library had not beeninvalid reference
initialized
-
setWindowSizeLimits
public void setWindowSizeLimits(@Nullable @Nullable GLFWwindow window, int minwidth, int minheight, int maxwidth, int maxheight) - Since:
- Added in version 3.2.
-
setWindowTitle
public void setWindowTitle(@Nullable @Nullable GLFWwindow window, @Nullable @Nullable BytePtr title) - Since:
- Added in version 1.0.
-
setWindowUserPointer
public void setWindowUserPointer(@Nullable @Nullable GLFWwindow window, @Pointer(comment="void*") MemorySegment pointer) - Since:
- Added in version 3.0.
-
setX11SelectionString
- Since:
- Added in version 3.3.
-
showWindow
- Since:
- Added in version 3.0.
-
swapBuffers
- Since:
- Added in version 1.0.
-
swapInterval
public void swapInterval(int interval) - Since:
- Added in version 1.0.
-
terminate
public void terminate()- Since:
- Added in version 1.0.
-
updateGamepadMappings
- Returns:
GLFW_TRUE
if successful, orGLFW_FALSE
if aninvalid reference
error
- Since:
- Added in version 3.3.
-
vulkanSupported
public int vulkanSupported()- Returns:
GLFW_TRUE
if Vulkan is minimally available, orGLFW_FALSE
otherwise.- Since:
- Added in version 3.2.
-
waitEvents
public void waitEvents()- Since:
- Added in version 2.5.
-
waitEventsTimeout
public void waitEventsTimeout(double timeout) - Since:
- Added in version 3.2.
-
windowHint
public void windowHint(int hint, int value) - Since:
- Added in version 3.0. Replaces
glfwOpenWindowHint
.
-
windowHintString
- Since:
- Added in version 3.3.
-
windowShouldClose
- Returns:
- The value of the close flag.
- Since:
- Added in version 3.0.
-