| 1 |
from _typeshed import Incomplete |
| 2 |
from collections.abc import Callable, Sequence |
| 3 |
import ctypes |
| 4 |
from typing import NamedTuple, Optional |
| 5 |
from cffi import FFI |
| 6 |
|
| 7 |
__version__: str |
| 8 |
__license__: str |
| 9 |
ERROR_REPORTING: str |
| 10 |
NORMALIZE_GAMMA_RAMPS: bool |
| 11 |
ffi: FFI |
| 12 |
_PREVIEW: Optional[bool] |
| 13 |
|
| 14 |
class GLFWError(UserWarning): |
| 15 |
error_code: int |
| 16 |
def __init__(self, message: str, error_code: int | None = None) -> None: ... |
| 17 |
|
| 18 |
class _GLFWwindow(ctypes.Structure): |
| 19 |
dummy: ctypes.c_int |
| 20 |
|
| 21 |
class _GLFWmonitor(ctypes.Structure): |
| 22 |
dummy: ctypes.c_int |
| 23 |
|
| 24 |
class _GLFWvidmode(ctypes.Structure): |
| 25 |
class GLFWvidmode(NamedTuple): |
| 26 |
size: _GLFWvidmode.Size |
| 27 |
bits: _GLFWvidmode.Bits |
| 28 |
refresh_rate: int |
| 29 |
|
| 30 |
class Size(NamedTuple): |
| 31 |
width: int |
| 32 |
height: int |
| 33 |
|
| 34 |
class Bits(NamedTuple): |
| 35 |
red: int |
| 36 |
green: int |
| 37 |
blue: int |
| 38 |
|
| 39 |
width: ctypes.c_int |
| 40 |
height: ctypes.c_int |
| 41 |
red_bits: ctypes.c_int |
| 42 |
green_bits: ctypes.c_int |
| 43 |
blue_bits: ctypes.c_int |
| 44 |
refresh_rate: ctypes.c_uint |
| 45 |
|
| 46 |
def __init__(self) -> None: ... |
| 47 |
def wrap(self, video_mode: GLFWvidmode) -> None: ... |
| 48 |
def unwrap(self) -> GLFWvidmode: ... |
| 49 |
|
| 50 |
class _GLFWgammaramp(ctypes.Structure): |
| 51 |
class GLFWgammaramp(NamedTuple): |
| 52 |
red: int |
| 53 |
green: int |
| 54 |
blue: int |
| 55 |
|
| 56 |
red: ctypes._Pointer[ctypes.c_ushort] |
| 57 |
green: ctypes._Pointer[ctypes.c_ushort] |
| 58 |
blue: ctypes._Pointer[ctypes.c_ushort] |
| 59 |
size: ctypes.c_uint |
| 60 |
|
| 61 |
def __init__(self) -> None: ... |
| 62 |
def wrap(self, gammaramp: GLFWgammaramp) -> None: ... |
| 63 |
def unwrap(self) -> GLFWgammaramp: ... |
| 64 |
|
| 65 |
class _GLFWcursor(ctypes.Structure): |
| 66 |
dummy: ctypes.c_int |
| 67 |
|
| 68 |
class _GLFWimage(ctypes.Structure): |
| 69 |
class GLFWimage(NamedTuple): |
| 70 |
width: int |
| 71 |
height: int |
| 72 |
pixels: Incomplete |
| 73 |
|
| 74 |
width: ctypes.c_int |
| 75 |
height: ctypes.c_int |
| 76 |
pixels: ctypes._Pointer[ctypes.c_ubyte] |
| 77 |
|
| 78 |
def __init__(self) -> None: ... |
| 79 |
def wrap(self, image: GLFWimage) -> None: ... |
| 80 |
def unwrap(self) -> GLFWimage: ... |
| 81 |
|
| 82 |
class _GLFWgamepadstate(ctypes.Structure): |
| 83 |
class GLFWgamepadstate(NamedTuple): |
| 84 |
buttons: list[int] |
| 85 |
axes: list[float] |
| 86 |
|
| 87 |
buttons: ctypes.Array[ctypes.c_ubyte] |
| 88 |
axes: ctypes.Array[ctypes.c_float] |
| 89 |
|
| 90 |
def __init__(self) -> None: ... |
| 91 |
def wrap(self, gamepad_state: GLFWgamepadstate) -> None: ... |
| 92 |
def unwrap(self) -> GLFWgamepadstate: ... |
| 93 |
|
| 94 |
VERSION_MAJOR: int |
| 95 |
VERSION_MINOR: int |
| 96 |
VERSION_REVISION: int |
| 97 |
TRUE: int |
| 98 |
FALSE: int |
| 99 |
RELEASE: int |
| 100 |
PRESS: int |
| 101 |
REPEAT: int |
| 102 |
HAT_CENTERED: int |
| 103 |
HAT_UP: int |
| 104 |
HAT_RIGHT: int |
| 105 |
HAT_DOWN: int |
| 106 |
HAT_LEFT: int |
| 107 |
HAT_RIGHT_UP: int |
| 108 |
HAT_RIGHT_DOWN: int |
| 109 |
HAT_LEFT_UP: int |
| 110 |
HAT_LEFT_DOWN: int |
| 111 |
KEY_UNKNOWN: int |
| 112 |
KEY_SPACE: int |
| 113 |
KEY_APOSTROPHE: int |
| 114 |
KEY_COMMA: int |
| 115 |
KEY_MINUS: int |
| 116 |
KEY_PERIOD: int |
| 117 |
KEY_SLASH: int |
| 118 |
KEY_0: int |
| 119 |
KEY_1: int |
| 120 |
KEY_2: int |
| 121 |
KEY_3: int |
| 122 |
KEY_4: int |
| 123 |
KEY_5: int |
| 124 |
KEY_6: int |
| 125 |
KEY_7: int |
| 126 |
KEY_8: int |
| 127 |
KEY_9: int |
| 128 |
KEY_SEMICOLON: int |
| 129 |
KEY_EQUAL: int |
| 130 |
KEY_A: int |
| 131 |
KEY_B: int |
| 132 |
KEY_C: int |
| 133 |
KEY_D: int |
| 134 |
KEY_E: int |
| 135 |
KEY_F: int |
| 136 |
KEY_G: int |
| 137 |
KEY_H: int |
| 138 |
KEY_I: int |
| 139 |
KEY_J: int |
| 140 |
KEY_K: int |
| 141 |
KEY_L: int |
| 142 |
KEY_M: int |
| 143 |
KEY_N: int |
| 144 |
KEY_O: int |
| 145 |
KEY_P: int |
| 146 |
KEY_Q: int |
| 147 |
KEY_R: int |
| 148 |
KEY_S: int |
| 149 |
KEY_T: int |
| 150 |
KEY_U: int |
| 151 |
KEY_V: int |
| 152 |
KEY_W: int |
| 153 |
KEY_X: int |
| 154 |
KEY_Y: int |
| 155 |
KEY_Z: int |
| 156 |
KEY_LEFT_BRACKET: int |
| 157 |
KEY_BACKSLASH: int |
| 158 |
KEY_RIGHT_BRACKET: int |
| 159 |
KEY_GRAVE_ACCENT: int |
| 160 |
KEY_WORLD_1: int |
| 161 |
KEY_WORLD_2: int |
| 162 |
KEY_ESCAPE: int |
| 163 |
KEY_ENTER: int |
| 164 |
KEY_TAB: int |
| 165 |
KEY_BACKSPACE: int |
| 166 |
KEY_INSERT: int |
| 167 |
KEY_DELETE: int |
| 168 |
KEY_RIGHT: int |
| 169 |
KEY_LEFT: int |
| 170 |
KEY_DOWN: int |
| 171 |
KEY_UP: int |
| 172 |
KEY_PAGE_UP: int |
| 173 |
KEY_PAGE_DOWN: int |
| 174 |
KEY_HOME: int |
| 175 |
KEY_END: int |
| 176 |
KEY_CAPS_LOCK: int |
| 177 |
KEY_SCROLL_LOCK: int |
| 178 |
KEY_NUM_LOCK: int |
| 179 |
KEY_PRINT_SCREEN: int |
| 180 |
KEY_PAUSE: int |
| 181 |
KEY_F1: int |
| 182 |
KEY_F2: int |
| 183 |
KEY_F3: int |
| 184 |
KEY_F4: int |
| 185 |
KEY_F5: int |
| 186 |
KEY_F6: int |
| 187 |
KEY_F7: int |
| 188 |
KEY_F8: int |
| 189 |
KEY_F9: int |
| 190 |
KEY_F10: int |
| 191 |
KEY_F11: int |
| 192 |
KEY_F12: int |
| 193 |
KEY_F13: int |
| 194 |
KEY_F14: int |
| 195 |
KEY_F15: int |
| 196 |
KEY_F16: int |
| 197 |
KEY_F17: int |
| 198 |
KEY_F18: int |
| 199 |
KEY_F19: int |
| 200 |
KEY_F20: int |
| 201 |
KEY_F21: int |
| 202 |
KEY_F22: int |
| 203 |
KEY_F23: int |
| 204 |
KEY_F24: int |
| 205 |
KEY_F25: int |
| 206 |
KEY_KP_0: int |
| 207 |
KEY_KP_1: int |
| 208 |
KEY_KP_2: int |
| 209 |
KEY_KP_3: int |
| 210 |
KEY_KP_4: int |
| 211 |
KEY_KP_5: int |
| 212 |
KEY_KP_6: int |
| 213 |
KEY_KP_7: int |
| 214 |
KEY_KP_8: int |
| 215 |
KEY_KP_9: int |
| 216 |
KEY_KP_DECIMAL: int |
| 217 |
KEY_KP_DIVIDE: int |
| 218 |
KEY_KP_MULTIPLY: int |
| 219 |
KEY_KP_SUBTRACT: int |
| 220 |
KEY_KP_ADD: int |
| 221 |
KEY_KP_ENTER: int |
| 222 |
KEY_KP_EQUAL: int |
| 223 |
KEY_LEFT_SHIFT: int |
| 224 |
KEY_LEFT_CONTROL: int |
| 225 |
KEY_LEFT_ALT: int |
| 226 |
KEY_LEFT_SUPER: int |
| 227 |
KEY_RIGHT_SHIFT: int |
| 228 |
KEY_RIGHT_CONTROL: int |
| 229 |
KEY_RIGHT_ALT: int |
| 230 |
KEY_RIGHT_SUPER: int |
| 231 |
KEY_MENU: int |
| 232 |
KEY_LAST = KEY_MENU |
| 233 |
MOD_SHIFT: int |
| 234 |
MOD_CONTROL: int |
| 235 |
MOD_ALT: int |
| 236 |
MOD_SUPER: int |
| 237 |
MOD_CAPS_LOCK: int |
| 238 |
MOD_NUM_LOCK: int |
| 239 |
MOUSE_BUTTON_1: int |
| 240 |
MOUSE_BUTTON_2: int |
| 241 |
MOUSE_BUTTON_3: int |
| 242 |
MOUSE_BUTTON_4: int |
| 243 |
MOUSE_BUTTON_5: int |
| 244 |
MOUSE_BUTTON_6: int |
| 245 |
MOUSE_BUTTON_7: int |
| 246 |
MOUSE_BUTTON_8: int |
| 247 |
MOUSE_BUTTON_LAST = MOUSE_BUTTON_8 |
| 248 |
MOUSE_BUTTON_LEFT = MOUSE_BUTTON_1 |
| 249 |
MOUSE_BUTTON_RIGHT = MOUSE_BUTTON_2 |
| 250 |
MOUSE_BUTTON_MIDDLE = MOUSE_BUTTON_3 |
| 251 |
JOYSTICK_1: int |
| 252 |
JOYSTICK_2: int |
| 253 |
JOYSTICK_3: int |
| 254 |
JOYSTICK_4: int |
| 255 |
JOYSTICK_5: int |
| 256 |
JOYSTICK_6: int |
| 257 |
JOYSTICK_7: int |
| 258 |
JOYSTICK_8: int |
| 259 |
JOYSTICK_9: int |
| 260 |
JOYSTICK_10: int |
| 261 |
JOYSTICK_11: int |
| 262 |
JOYSTICK_12: int |
| 263 |
JOYSTICK_13: int |
| 264 |
JOYSTICK_14: int |
| 265 |
JOYSTICK_15: int |
| 266 |
JOYSTICK_16: int |
| 267 |
JOYSTICK_LAST = JOYSTICK_16 |
| 268 |
GAMEPAD_BUTTON_A: int |
| 269 |
GAMEPAD_BUTTON_B: int |
| 270 |
GAMEPAD_BUTTON_X: int |
| 271 |
GAMEPAD_BUTTON_Y: int |
| 272 |
GAMEPAD_BUTTON_LEFT_BUMPER: int |
| 273 |
GAMEPAD_BUTTON_RIGHT_BUMPER: int |
| 274 |
GAMEPAD_BUTTON_BACK: int |
| 275 |
GAMEPAD_BUTTON_START: int |
| 276 |
GAMEPAD_BUTTON_GUIDE: int |
| 277 |
GAMEPAD_BUTTON_LEFT_THUMB: int |
| 278 |
GAMEPAD_BUTTON_RIGHT_THUMB: int |
| 279 |
GAMEPAD_BUTTON_DPAD_UP: int |
| 280 |
GAMEPAD_BUTTON_DPAD_RIGHT: int |
| 281 |
GAMEPAD_BUTTON_DPAD_DOWN: int |
| 282 |
GAMEPAD_BUTTON_DPAD_LEFT: int |
| 283 |
GAMEPAD_BUTTON_LAST = GAMEPAD_BUTTON_DPAD_LEFT |
| 284 |
GAMEPAD_BUTTON_CROSS = GAMEPAD_BUTTON_A |
| 285 |
GAMEPAD_BUTTON_CIRCLE = GAMEPAD_BUTTON_B |
| 286 |
GAMEPAD_BUTTON_SQUARE = GAMEPAD_BUTTON_X |
| 287 |
GAMEPAD_BUTTON_TRIANGLE = GAMEPAD_BUTTON_Y |
| 288 |
GAMEPAD_AXIS_LEFT_X: int |
| 289 |
GAMEPAD_AXIS_LEFT_Y: int |
| 290 |
GAMEPAD_AXIS_RIGHT_X: int |
| 291 |
GAMEPAD_AXIS_RIGHT_Y: int |
| 292 |
GAMEPAD_AXIS_LEFT_TRIGGER: int |
| 293 |
GAMEPAD_AXIS_RIGHT_TRIGGER: int |
| 294 |
GAMEPAD_AXIS_LAST = GAMEPAD_AXIS_RIGHT_TRIGGER |
| 295 |
NO_ERROR: int |
| 296 |
NOT_INITIALIZED: int |
| 297 |
NO_CURRENT_CONTEXT: int |
| 298 |
INVALID_ENUM: int |
| 299 |
INVALID_VALUE: int |
| 300 |
OUT_OF_MEMORY: int |
| 301 |
API_UNAVAILABLE: int |
| 302 |
VERSION_UNAVAILABLE: int |
| 303 |
PLATFORM_ERROR: int |
| 304 |
FORMAT_UNAVAILABLE: int |
| 305 |
NO_WINDOW_CONTEXT: int |
| 306 |
CURSOR_UNAVAILABLE: int |
| 307 |
FEATURE_UNAVAILABLE: int |
| 308 |
FEATURE_UNIMPLEMENTED: int |
| 309 |
PLATFORM_UNAVAILABLE: int |
| 310 |
FOCUSED: int |
| 311 |
ICONIFIED: int |
| 312 |
RESIZABLE: int |
| 313 |
VISIBLE: int |
| 314 |
DECORATED: int |
| 315 |
AUTO_ICONIFY: int |
| 316 |
FLOATING: int |
| 317 |
MAXIMIZED: int |
| 318 |
CENTER_CURSOR: int |
| 319 |
TRANSPARENT_FRAMEBUFFER: int |
| 320 |
HOVERED: int |
| 321 |
FOCUS_ON_SHOW: int |
| 322 |
MOUSE_PASSTHROUGH: int |
| 323 |
POSITION_X: int |
| 324 |
POSITION_Y: int |
| 325 |
RED_BITS: int |
| 326 |
GREEN_BITS: int |
| 327 |
BLUE_BITS: int |
| 328 |
ALPHA_BITS: int |
| 329 |
DEPTH_BITS: int |
| 330 |
STENCIL_BITS: int |
| 331 |
ACCUM_RED_BITS: int |
| 332 |
ACCUM_GREEN_BITS: int |
| 333 |
ACCUM_BLUE_BITS: int |
| 334 |
ACCUM_ALPHA_BITS: int |
| 335 |
AUX_BUFFERS: int |
| 336 |
STEREO: int |
| 337 |
SAMPLES: int |
| 338 |
SRGB_CAPABLE: int |
| 339 |
REFRESH_RATE: int |
| 340 |
DOUBLEBUFFER: int |
| 341 |
CLIENT_API: int |
| 342 |
CONTEXT_VERSION_MAJOR: int |
| 343 |
CONTEXT_VERSION_MINOR: int |
| 344 |
CONTEXT_REVISION: int |
| 345 |
CONTEXT_ROBUSTNESS: int |
| 346 |
OPENGL_FORWARD_COMPAT: int |
| 347 |
OPENGL_DEBUG_CONTEXT: int |
| 348 |
CONTEXT_DEBUG: int |
| 349 |
OPENGL_PROFILE: int |
| 350 |
CONTEXT_RELEASE_BEHAVIOR: int |
| 351 |
CONTEXT_NO_ERROR: int |
| 352 |
CONTEXT_CREATION_API: int |
| 353 |
SCALE_TO_MONITOR: int |
| 354 |
SCALE_FRAMEBUFFER: int |
| 355 |
COCOA_RETINA_FRAMEBUFFER: int |
| 356 |
COCOA_FRAME_NAME: int |
| 357 |
COCOA_GRAPHICS_SWITCHING: int |
| 358 |
X11_CLASS_NAME: int |
| 359 |
X11_INSTANCE_NAME: int |
| 360 |
WIN32_KEYBOARD_MENU: int |
| 361 |
WIN32_SHOWDEFAULT: int |
| 362 |
WAYLAND_APP_ID: int |
| 363 |
NO_API: int |
| 364 |
OPENGL_API: int |
| 365 |
OPENGL_ES_API: int |
| 366 |
NO_ROBUSTNESS: int |
| 367 |
NO_RESET_NOTIFICATION: int |
| 368 |
LOSE_CONTEXT_ON_RESET: int |
| 369 |
OPENGL_ANY_PROFILE: int |
| 370 |
OPENGL_CORE_PROFILE: int |
| 371 |
OPENGL_COMPAT_PROFILE: int |
| 372 |
CURSOR: int |
| 373 |
STICKY_KEYS: int |
| 374 |
STICKY_MOUSE_BUTTONS: int |
| 375 |
LOCK_KEY_MODS: int |
| 376 |
RAW_MOUSE_MOTION: int |
| 377 |
CURSOR_NORMAL: int |
| 378 |
CURSOR_HIDDEN: int |
| 379 |
CURSOR_DISABLED: int |
| 380 |
CURSOR_CAPTURED: int |
| 381 |
ANY_RELEASE_BEHAVIOR: int |
| 382 |
RELEASE_BEHAVIOR_FLUSH: int |
| 383 |
RELEASE_BEHAVIOR_NONE: int |
| 384 |
NATIVE_CONTEXT_API: int |
| 385 |
EGL_CONTEXT_API: int |
| 386 |
OSMESA_CONTEXT_API: int |
| 387 |
ARROW_CURSOR: int |
| 388 |
IBEAM_CURSOR: int |
| 389 |
CROSSHAIR_CURSOR: int |
| 390 |
HAND_CURSOR: int |
| 391 |
POINTING_HAND_CURSOR: int |
| 392 |
HRESIZE_CURSOR: int |
| 393 |
RESIZE_EW_CURSOR: int |
| 394 |
VRESIZE_CURSOR: int |
| 395 |
RESIZE_NS_CURSOR: int |
| 396 |
RESIZE_NWSE_CURSOR: int |
| 397 |
RESIZE_NESW_CURSOR: int |
| 398 |
RESIZE_ALL_CURSOR: int |
| 399 |
NOT_ALLOWED_CURSOR: int |
| 400 |
ANGLE_PLATFORM_TYPE_NONE: int |
| 401 |
ANGLE_PLATFORM_TYPE_OPENGL: int |
| 402 |
ANGLE_PLATFORM_TYPE_OPENGLES: int |
| 403 |
ANGLE_PLATFORM_TYPE_D3D9: int |
| 404 |
ANGLE_PLATFORM_TYPE_D3D11: int |
| 405 |
ANGLE_PLATFORM_TYPE_VULKAN: int |
| 406 |
ANGLE_PLATFORM_TYPE_METAL: int |
| 407 |
WAYLAND_PREFER_LIBDECOR: int |
| 408 |
WAYLAND_DISABLE_LIBDECOR: int |
| 409 |
CONNECTED: int |
| 410 |
DISCONNECTED: int |
| 411 |
JOYSTICK_HAT_BUTTONS: int |
| 412 |
ANGLE_PLATFORM_TYPE: int |
| 413 |
PLATFORM: int |
| 414 |
COCOA_CHDIR_RESOURCES: int |
| 415 |
COCOA_MENUBAR: int |
| 416 |
X11_XCB_VULKAN_SURFACE: int |
| 417 |
WAYLAND_LIBDECOR: int |
| 418 |
ANY_PLATFORM: int |
| 419 |
PLATFORM_WIN32: int |
| 420 |
PLATFORM_COCOA: int |
| 421 |
PLATFORM_WAYLAND: int |
| 422 |
PLATFORM_X11: int |
| 423 |
PLATFORM_NULL: int |
| 424 |
ANY_POSITION: int |
| 425 |
DONT_CARE: int |
| 426 |
UNLIMITED_MOUSE_BUTTONS: int |
| 427 |
|
| 428 |
|
| 429 |
type _GLFWallocatefunT = Callable[[ctypes.c_size_t, ctypes.c_void_p], ctypes.c_void_p] |
| 430 |
type _GLFWreallocatefunT = Callable[[ctypes.c_void_p, ctypes.c_size_t, ctypes.c_void_p], ctypes.c_void_p] |
| 431 |
type _GLFWdeallocatefunT = Callable[[None, ctypes.c_void_p, ctypes.c_void_p], ctypes.c_void_p] |
| 432 |
|
| 433 |
class _GLFWallocator(ctypes.Structure): |
| 434 |
allocate: _GLFWallocatefunT |
| 435 |
reallocate: _GLFWreallocatefunT |
| 436 |
deallocate: _GLFWdeallocatefunT |
| 437 |
|
| 438 |
|
| 439 |
|
| 440 |
type _GLFWvidmodeT = _GLFWvidmode.GLFWvidmode |
| 441 |
type _GLFWgammarampT = _GLFWgammaramp.GLFWgammaramp |
| 442 |
type _GLFWimageT = _GLFWimage.GLFWimage |
| 443 |
type _GLFWgamepadstateT = _GLFWgamepadstate.GLFWgamepadstate |
| 444 |
|
| 445 |
type _GLFWmonitorPointerT = ctypes._Pointer[_GLFWmonitor] |
| 446 |
type _GLFWwindowPointerT = ctypes._Pointer[_GLFWwindow] |
| 447 |
type _GLFWcursorPointerT = ctypes._Pointer[_GLFWcursor] |
| 448 |
|
| 449 |
type _GLFWglprocT = ctypes.c_void_p |
| 450 |
|
| 451 |
type _GLFWerrorfunT = Callable[[int, str], None] |
| 452 |
type _GLFWwindowposfunT = Callable[[_GLFWwindowPointerT, int, int], None] |
| 453 |
type _GLFWwindowsizefunT = Callable[[_GLFWwindowPointerT, int, int], None] |
| 454 |
type _GLFWwindowclosefunT = Callable[[_GLFWwindowPointerT], None] |
| 455 |
type _GLFWwindowrefreshfunT = Callable[[_GLFWwindowPointerT], None] |
| 456 |
type _GLFWwindowfocusfunT = Callable[[_GLFWwindowPointerT, int], None] |
| 457 |
type _GLFWwindowiconifyfunT = Callable[[_GLFWwindowPointerT, int], None] |
| 458 |
type _GLFWwindowmaximizefunT = Callable[[_GLFWwindowPointerT, int], None] |
| 459 |
type _GLFWframebuffersizefunT = Callable[[_GLFWwindowPointerT, int, int], None] |
| 460 |
type _GLFWwindowcontentscalefunT = Callable[[_GLFWwindowPointerT, float, float], None] |
| 461 |
|
| 462 |
type _GLFWmousebuttonfunT = Callable[[_GLFWwindowPointerT, int, int, int], None] |
| 463 |
type _GLFWcursorposfunT = Callable[[_GLFWwindowPointerT, float, float], None] |
| 464 |
type _GLFWcursorenterfunT = Callable[[_GLFWwindowPointerT, int], None] |
| 465 |
type _GLFWscrollfunT = Callable[[_GLFWwindowPointerT, float, float], None] |
| 466 |
type _GLFWkeyfunT = Callable[[_GLFWwindowPointerT, int, int, int, int], None] |
| 467 |
type _GLFWcharfunT = Callable[[_GLFWwindowPointerT, int], None] |
| 468 |
type _GLFWmonitorfunT = Callable[[_GLFWmonitorPointerT, int], None] |
| 469 |
type _GLFWdropfunT = Callable[[_GLFWwindowPointerT, int, str], None] |
| 470 |
type _GLFWcharmodsfunT = Callable[[_GLFWwindowPointerT, int, int], None] |
| 471 |
type _GLFWjoystickfunT = Callable[[int, int], None] |
| 472 |
|
| 473 |
|
| 474 |
def init() -> int: ... |
| 475 |
def terminate() -> None: ... |
| 476 |
def init_hint(hint: int, value: int) -> None: ... |
| 477 |
def get_version() -> tuple[int, int, int]: ... |
| 478 |
def get_version_string() -> str: ... |
| 479 |
def get_error() -> tuple[int, str]: ... |
| 480 |
def set_error_callback(cbfun: _GLFWerrorfunT) -> _GLFWerrorfunT | None: ... |
| 481 |
def get_monitors() -> list[_GLFWmonitorPointerT]: ... |
| 482 |
def get_primary_monitor() -> _GLFWmonitorPointerT: ... |
| 483 |
def get_monitor_pos(monitor: _GLFWmonitorPointerT) -> tuple[int, int]: ... |
| 484 |
def get_monitor_workarea(monitor: _GLFWmonitorPointerT) -> tuple[int, int, int, int]: ... |
| 485 |
def get_monitor_physical_size(monitor: _GLFWmonitorPointerT) -> tuple[int, int]: ... |
| 486 |
def get_monitor_content_scale(monitor: _GLFWmonitorPointerT) -> tuple[float, float]: ... |
| 487 |
def get_monitor_name(monitor: _GLFWmonitorPointerT) -> str: ... |
| 488 |
def set_monitor_user_pointer(monitor: _GLFWmonitorPointerT, pointer: object) -> None: ... |
| 489 |
def get_monitor_user_pointer(monitor: _GLFWmonitorPointerT) -> object: ... |
| 490 |
def set_monitor_callback(cbfun: _GLFWmonitorfunT) -> _GLFWmonitorfunT | None: ... |
| 491 |
def get_video_modes(monitor: _GLFWmonitorPointerT) -> list[_GLFWvidmodeT]: ... |
| 492 |
def get_video_mode(monitor: _GLFWmonitorPointerT) -> _GLFWvidmodeT: ... |
| 493 |
def set_gamma(monitor: _GLFWmonitorPointerT, gamma: float) -> None: ... |
| 494 |
def get_gamma_ramp(monitor: _GLFWmonitorPointerT) -> _GLFWgammarampT: ... |
| 495 |
def set_gamma_ramp(monitor: _GLFWmonitorPointerT, ramp: _GLFWgammarampT) -> None: ... |
| 496 |
def default_window_hints() -> None: ... |
| 497 |
def window_hint(hint: int, value: int) -> None: ... |
| 498 |
def window_hint_string(hint: int, value: str) -> None: ... |
| 499 |
def create_window( |
| 500 |
width: int, |
| 501 |
height: int, |
| 502 |
title: str, |
| 503 |
monitor: _GLFWmonitorPointerT | None, |
| 504 |
share: _GLFWwindowPointerT | None, |
| 505 |
) -> _GLFWwindowPointerT: ... |
| 506 |
def destroy_window(window: _GLFWwindowPointerT) -> None: ... |
| 507 |
def window_should_close(window: _GLFWwindowPointerT) -> int: ... |
| 508 |
def set_window_should_close(window: _GLFWwindowPointerT, value: int) -> None: ... |
| 509 |
def set_window_title(window: _GLFWwindowPointerT, title: str) -> None: ... |
| 510 |
def get_window_pos(window: _GLFWwindowPointerT) -> tuple[int, int]: ... |
| 511 |
def set_window_pos(window: _GLFWwindowPointerT, xpos: int, ypos: int) -> None: ... |
| 512 |
def get_window_size(window: _GLFWwindowPointerT) -> tuple[int, int]: ... |
| 513 |
def set_window_size(window: _GLFWwindowPointerT, width: int, height: int) -> None: ... |
| 514 |
def get_framebuffer_size(window: _GLFWwindowPointerT) -> tuple[int, int]: ... |
| 515 |
def get_window_content_scale(window: _GLFWwindowPointerT) -> tuple[float, float]: ... |
| 516 |
def get_window_opacity(window: _GLFWwindowPointerT) -> float: ... |
| 517 |
def set_window_opacity(window: _GLFWwindowPointerT, opacity: float) -> None: ... |
| 518 |
def iconify_window(window: _GLFWwindowPointerT) -> None: ... |
| 519 |
def restore_window(window: _GLFWwindowPointerT) -> None: ... |
| 520 |
def show_window(window: _GLFWwindowPointerT) -> None: ... |
| 521 |
def hide_window(window: _GLFWwindowPointerT) -> None: ... |
| 522 |
def request_window_attention(window: _GLFWwindowPointerT) -> None: ... |
| 523 |
def get_window_monitor(window: _GLFWwindowPointerT) -> _GLFWmonitorPointerT: ... |
| 524 |
def get_window_attrib(window: _GLFWwindowPointerT, attrib: int) -> int: ... |
| 525 |
def set_window_attrib(window: _GLFWwindowPointerT, attrib: int, value: int) -> None: ... |
| 526 |
def set_window_user_pointer(window: _GLFWwindowPointerT, pointer: object) -> None: ... |
| 527 |
def get_window_user_pointer(window: _GLFWwindowPointerT) -> object: ... |
| 528 |
def set_window_pos_callback( |
| 529 |
window: _GLFWwindowPointerT, cbfun: _GLFWwindowposfunT |
| 530 |
) -> _GLFWwindowposfunT | None: ... |
| 531 |
def set_window_size_callback( |
| 532 |
window: _GLFWwindowPointerT, cbfun: _GLFWwindowsizefunT |
| 533 |
) -> _GLFWwindowsizefunT | None: ... |
| 534 |
def set_window_close_callback( |
| 535 |
window: _GLFWwindowPointerT, cbfun: _GLFWwindowclosefunT |
| 536 |
) -> _GLFWwindowclosefunT | None: ... |
| 537 |
def set_window_refresh_callback( |
| 538 |
window: _GLFWwindowPointerT, cbfun: _GLFWwindowrefreshfunT |
| 539 |
) -> _GLFWwindowrefreshfunT | None: ... |
| 540 |
def set_window_focus_callback( |
| 541 |
window: _GLFWwindowPointerT, cbfun: _GLFWwindowfocusfunT |
| 542 |
) -> _GLFWwindowfocusfunT | None: ... |
| 543 |
def set_window_iconify_callback( |
| 544 |
window: _GLFWwindowPointerT, cbfun: _GLFWwindowiconifyfunT |
| 545 |
) -> _GLFWwindowiconifyfunT | None: ... |
| 546 |
def set_window_maximize_callback( |
| 547 |
window: _GLFWwindowPointerT, cbfun: _GLFWwindowmaximizefunT |
| 548 |
) -> _GLFWwindowmaximizefunT | None: ... |
| 549 |
def set_framebuffer_size_callback( |
| 550 |
window: _GLFWwindowPointerT, cbfun: _GLFWframebuffersizefunT |
| 551 |
) -> _GLFWframebuffersizefunT | None: ... |
| 552 |
def set_window_content_scale_callback( |
| 553 |
window: _GLFWwindowPointerT, cbfun: _GLFWwindowcontentscalefunT |
| 554 |
) -> _GLFWwindowcontentscalefunT | None: ... |
| 555 |
def poll_events() -> None: ... |
| 556 |
def wait_events() -> None: ... |
| 557 |
def get_input_mode(window: _GLFWwindowPointerT, mode: int) -> int: ... |
| 558 |
def set_input_mode(window: _GLFWwindowPointerT, mode: int, value: int) -> None: ... |
| 559 |
def raw_mouse_motion_supported() -> bool: ... |
| 560 |
def get_key(window: _GLFWwindowPointerT, key: int) -> int: ... |
| 561 |
def get_mouse_button(window: _GLFWwindowPointerT, button: int) -> int: ... |
| 562 |
def get_cursor_pos(window: _GLFWwindowPointerT) -> tuple[float, float]: ... |
| 563 |
def set_cursor_pos(window: _GLFWwindowPointerT, xpos: float, ypos: float) -> None: ... |
| 564 |
def set_key_callback( |
| 565 |
window: _GLFWwindowPointerT, cbfun: _GLFWkeyfunT |
| 566 |
) -> _GLFWkeyfunT | None: ... |
| 567 |
def set_char_callback( |
| 568 |
window: _GLFWwindowPointerT, cbfun: _GLFWcharfunT |
| 569 |
) -> _GLFWcharfunT | None: ... |
| 570 |
def set_mouse_button_callback( |
| 571 |
window: _GLFWwindowPointerT, cbfun: _GLFWmousebuttonfunT |
| 572 |
) -> _GLFWmousebuttonfunT | None: ... |
| 573 |
def set_cursor_pos_callback( |
| 574 |
window: _GLFWwindowPointerT, cbfun: _GLFWcursorposfunT |
| 575 |
) -> _GLFWcursorposfunT | None: ... |
| 576 |
def set_cursor_enter_callback( |
| 577 |
window: _GLFWwindowPointerT, cbfun: _GLFWcursorenterfunT |
| 578 |
) -> _GLFWcursorenterfunT | None: ... |
| 579 |
def set_scroll_callback( |
| 580 |
window: _GLFWwindowPointerT, cbfun: _GLFWscrollfunT |
| 581 |
) -> _GLFWscrollfunT | None: ... |
| 582 |
def joystick_present(joy: int) -> int: ... |
| 583 |
def get_joystick_axes(joy: int) -> tuple[Sequence[float], int]: ... |
| 584 |
def get_joystick_buttons(joy: int) -> tuple[Sequence[int], int]: ... |
| 585 |
def get_joystick_hats(joystick_id: int) -> tuple[Sequence[int], int]: ... |
| 586 |
def get_joystick_name(joy: int) -> str: ... |
| 587 |
def get_joystick_guid(joystick_id: int) -> str: ... |
| 588 |
def set_joystick_user_pointer(joystick_id: int, pointer: object) -> None: ... |
| 589 |
def get_joystick_user_pointer(joystick_id: int) -> object: ... |
| 590 |
def joystick_is_gamepad(joystick_id: int) -> bool: ... |
| 591 |
def get_gamepad_state(joystick_id: int) -> _GLFWgamepadstateT: ... |
| 592 |
def set_clipboard_string(window: _GLFWwindowPointerT, string: str) -> None: ... |
| 593 |
def get_clipboard_string(window: _GLFWwindowPointerT) -> str: ... |
| 594 |
def get_time() -> float: ... |
| 595 |
def set_time(time: float) -> None: ... |
| 596 |
def make_context_current(window: _GLFWwindowPointerT) -> None: ... |
| 597 |
def get_current_context() -> _GLFWwindowPointerT: ... |
| 598 |
def swap_buffers(window: _GLFWwindowPointerT) -> None: ... |
| 599 |
def swap_interval(interval: int) -> None: ... |
| 600 |
def extension_supported(extension: str) -> int: ... |
| 601 |
def get_proc_address(procname: str) -> _GLFWglprocT: ... |
| 602 |
def set_drop_callback( |
| 603 |
window: _GLFWwindowPointerT, cbfun: _GLFWdropfunT |
| 604 |
) -> _GLFWdropfunT | None: ... |
| 605 |
def set_char_mods_callback( |
| 606 |
window: _GLFWwindowPointerT, cbfun: _GLFWcharmodsfunT |
| 607 |
) -> _GLFWcharmodsfunT | None: ... |
| 608 |
def vulkan_supported() -> bool: ... |
| 609 |
def get_required_instance_extensions() -> list[str]: ... |
| 610 |
def get_timer_value() -> int: ... |
| 611 |
def get_timer_frequency() -> int: ... |
| 612 |
def set_joystick_callback(cbfun: _GLFWjoystickfunT) -> _GLFWjoystickfunT | None: ... |
| 613 |
def update_gamepad_mappings(string: str) -> int: ... |
| 614 |
def get_gamepad_name(joystick_id: int) -> str | None: ... |
| 615 |
def get_key_name(key: int, scancode: int) -> str | None: ... |
| 616 |
def get_key_scancode(key: int) -> int: ... |
| 617 |
def create_cursor(image: _GLFWimageT, xhot: int, yhot: int) -> _GLFWcursorPointerT: ... |
| 618 |
def create_standard_cursor(shape: int) -> _GLFWcursorPointerT: ... |
| 619 |
def destroy_cursor(cursor: _GLFWcursorPointerT) -> None: ... |
| 620 |
def set_cursor(window: _GLFWwindowPointerT, cursor: _GLFWcursorPointerT) -> None: ... |
| 621 |
def create_window_surface(instance, window: _GLFWwindowPointerT, allocator, surface): ... |
| 622 |
def get_physical_device_presentation_support(instance, device, queuefamily: int): ... |
| 623 |
def get_instance_proc_address(instance, procname: str): ... |
| 624 |
def set_window_icon( |
| 625 |
window: _GLFWwindowPointerT, count: int, images: Sequence[_GLFWimageT] |
| 626 |
) -> None: ... |
| 627 |
def set_window_size_limits( |
| 628 |
window: _GLFWwindowPointerT, |
| 629 |
minwidth: int, |
| 630 |
minheight: int, |
| 631 |
maxwidth: int, |
| 632 |
maxheight: int, |
| 633 |
) -> None: ... |
| 634 |
def set_window_aspect_ratio( |
| 635 |
window: _GLFWwindowPointerT, numer: int, denom: int |
| 636 |
) -> None: ... |
| 637 |
def get_window_frame_size(window: _GLFWwindowPointerT) -> tuple[int, int, int, int]: ... |
| 638 |
def maximize_window(window: _GLFWwindowPointerT) -> None: ... |
| 639 |
def focus_window(window: _GLFWwindowPointerT) -> None: ... |
| 640 |
def set_window_monitor( |
| 641 |
window: _GLFWwindowPointerT, |
| 642 |
monitor: _GLFWmonitorPointerT, |
| 643 |
xpos: int, |
| 644 |
ypos: int, |
| 645 |
width: int, |
| 646 |
height: int, |
| 647 |
refresh_rate: int, |
| 648 |
) -> None: ... |
| 649 |
def wait_events_timeout(timeout: float) -> None: ... |
| 650 |
def post_empty_event() -> None: ... |
| 651 |
def get_win32_adapter(monitor: _GLFWmonitorPointerT): ... |
| 652 |
def get_win32_monitor(monitor: _GLFWmonitorPointerT): ... |
| 653 |
def get_win32_window(window: _GLFWwindowPointerT): ... |
| 654 |
def get_wgl_context(window: _GLFWwindowPointerT): ... |
| 655 |
def get_cocoa_monitor(monitor: _GLFWmonitorPointerT): ... |
| 656 |
def get_cocoa_window(window: _GLFWwindowPointerT): ... |
| 657 |
def get_nsgl_context(window: _GLFWwindowPointerT): ... |
| 658 |
def get_x11_display(): ... |
| 659 |
def get_x11_adapter(monitor: _GLFWmonitorPointerT): ... |
| 660 |
def get_x11_monitor(monitor: _GLFWmonitorPointerT): ... |
| 661 |
def get_x11_window(window: _GLFWwindowPointerT): ... |
| 662 |
def set_x11_selection_string(string: str) -> None: ... |
| 663 |
def get_x11_selection_string() -> str | None: ... |
| 664 |
def get_glx_context(window: _GLFWwindowPointerT): ... |
| 665 |
def get_glx_window(window: _GLFWwindowPointerT): ... |
| 666 |
def get_wayland_display(): ... |
| 667 |
def get_wayland_monitor(monitor: _GLFWmonitorPointerT): ... |
| 668 |
def get_wayland_window(window: _GLFWwindowPointerT): ... |
| 669 |
def get_egl_display(): ... |
| 670 |
def get_egl_context(window: _GLFWwindowPointerT): ... |
| 671 |
def get_egl_surface(window: _GLFWwindowPointerT): ... |
| 672 |
def get_os_mesa_color_buffer(window: _GLFWwindowPointerT) -> tuple[int, int, int, Incomplete]: ... |
| 673 |
def get_os_mesa_depth_buffer(window: _GLFWwindowPointerT) -> tuple[int, int, int, Incomplete]: ... |
| 674 |
def get_os_mesa_context(window: _GLFWwindowPointerT): ... |
| 675 |
def init_allocator(allocate, reallocate, deallocate) -> None: ... |
| 676 |
def init_vulkan_loader(loader) -> None: ... |
| 677 |
def get_platform() -> int: ... |
| 678 |
def platform_supported(platform: int) -> int: ... |
| 679 |
def get_window_title(window: _GLFWwindowPointerT) -> str: ... |