Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace glfw

Index

Variables

Functions

Variables

FALSE

FALSE: any = GLFW.FALSE

PRESS

PRESS: any = GLFW.PRESS

RELEASE

RELEASE: any = GLFW.RELEASE

REPEAT

REPEAT: any = GLFW.REPEAT

TRUE

TRUE: any = GLFW.TRUE

Functions

Const createCursor

  • createCursor(image: GLFWimage, x: number, y: number): number

Const createStandardCursor

  • createStandardCursor(shape: number): number

Const createWindow

  • createWindow(width: number, height: number, title: string, monitor?: null | number, root?: null | number): number
  • Parameters

    • width: number
    • height: number
    • title: string
    • Optional monitor: null | number
    • Optional root: null | number

    Returns number

Const defaultWindowHints

  • defaultWindowHints(): void

Const destroyCursor

  • destroyCursor(cursor: number): void

Const destroyWindow

  • destroyWindow(window: number): void

Const extensionSupported

  • extensionSupported(extension: string): boolean

Const focusWindow

  • focusWindow(window: number): void

Const getClipboardString

  • getClipboardString(window: number): string

Const getCurrentContext

  • getCurrentContext(): number

Const getCursorPos

  • getCursorPos(window: number): GLFWPosition

Const getError

  • getError(): undefined | Error

Const getFramebufferSize

  • getFramebufferSize(window: number): GLFWSize

Const getGamepadName

  • getGamepadName(joystickId: number): string

Const getGamepadState

  • getGamepadState(joystickId: number): GLFWgamepadstate

Const getGammaRamp

  • getGammaRamp(monitor: number): GLFWgammaramp

Const getInputMode

  • getInputMode(window: number, mode: number): number

Const getJoystickAxes

  • getJoystickAxes(joystickId: number): number[]

Const getJoystickButtons

  • getJoystickButtons(joystickId: number): number[]

Const getJoystickGUID

  • getJoystickGUID(joystickId: number): string

Const getJoystickHats

  • getJoystickHats(joystickId: number): number[]

Const getJoystickName

  • getJoystickName(joystickId: number): string

Const getKey

  • getKey(window: number, key: number): void

Const getKeyName

  • getKeyName(key: number, scancode: number): string

Const getKeyScancode

  • getKeyScancode(key: number): number

Const getMonitorContentScale

  • getMonitorContentScale(monitor: number): GLFWScale

Const getMonitorName

  • getMonitorName(monitor: number): string

Const getMonitorPhysicalSize

  • getMonitorPhysicalSize(monitor: number): GLFWSize

Const getMonitorPos

  • getMonitorPos(monitor: number): GLFWPosition

Const getMonitorWorkarea

  • getMonitorWorkarea(monitor: number): GLFWPositionAndSize

Const getMonitors

  • getMonitors(): number[]

Const getMouseButton

  • getMouseButton(window: number, button: number): number

Const getPrimaryMonitor

  • getPrimaryMonitor(): number

Const getProcAddress

  • getProcAddress(procname: string): number

Const getRequiredInstanceExtensions

  • getRequiredInstanceExtensions(): string[]

Const getTime

  • getTime(): number

Const getTimerFrequency

  • getTimerFrequency(): number

Const getTimerValue

  • getTimerValue(): number

Const getVersion

  • getVersion(): GLFWVersion

Const getVersionString

  • getVersionString(): string

Const getVideoMode

  • getVideoMode(monitor: number): GLFWvidmode

Const getVideoModes

  • getVideoModes(monitor: number): GLFWvidmode[]

Const getWindowAttrib

Const getWindowContentScale

  • getWindowContentScale(window: number): GLFWScale

Const getWindowFrameSize

  • getWindowFrameSize(window: number): GLFWRect

Const getWindowMonitor

  • getWindowMonitor(window: number): number

Const getWindowOpacity

  • getWindowOpacity(window: number): number

Const getWindowPos

  • getWindowPos(window: number): GLFWPosition

Const getWindowSize

  • getWindowSize(window: number): GLFWSize

Const hideWindow

  • hideWindow(window: number): void

Const iconifyWindow

  • iconifyWindow(window: number): void

Const initHint

  • initHint(hint: number, value: number | boolean): void

Const joystickIsGamepad

  • joystickIsGamepad(joystickId: number): boolean

Const joystickPresent

  • joystickPresent(joystickId: number): boolean

Const makeContextCurrent

  • makeContextCurrent(window: number): void

Const maximizeWindow

  • maximizeWindow(window: number): void

Const pollEvents

  • pollEvents(): void

Const postEmptyEvent

  • postEmptyEvent(): void

Const rawMouseMotionSupported

  • rawMouseMotionSupported(): boolean

Const reparentWindow

  • reparentWindow(child: number, parent: GLFWParentWindow, targetX: number, targetY: number): void

Const requestWindowAttention

  • requestWindowAttention(window: number): void

Const restoreWindow

  • restoreWindow(window: number): void

Const setCharCallback

  • setCharCallback(window: number, callback: null | ((window: number, code: number) => void)): void

Const setCharModsCallback

  • setCharModsCallback(window: number, callback: null | ((window: number, code: number, mods: number) => void)): void
  • Parameters

    • window: number
    • callback: null | ((window: number, code: number, mods: number) => void)

    Returns void

Const setClipboardString

  • setClipboardString(window: number, value: string): void

Const setCursor

  • setCursor(window: number, cursor: number): void

Const setCursorEnterCallback

  • setCursorEnterCallback(window: number, callback: null | ((window: number, entered: number) => void)): void

Const setCursorPos

  • setCursorPos(window: number, position: GLFWPosition): void

Const setCursorPosCallback

  • setCursorPosCallback(window: number, callback: null | ((window: number, x: number, y: number) => void)): void
  • Parameters

    • window: number
    • callback: null | ((window: number, x: number, y: number) => void)

    Returns void

Const setDropCallback

  • setDropCallback(window: number, callback: null | ((window: number, items: string[]) => void)): void

Const setErrorCallback

  • setErrorCallback(callback: null | ((error_code: number, description: string) => void)): void

Const setFramebufferSizeCallback

  • setFramebufferSizeCallback(window: number, callback: null | ((window: number, width: number, height: number) => void)): void
  • Parameters

    • window: number
    • callback: null | ((window: number, width: number, height: number) => void)

    Returns void

Const setGamma

  • setGamma(monitor: number, gamma: number): void

Const setGammaRamp

  • setGammaRamp(monitor: number, rapi: GLFWgammaramp): void

Const setInputMode

  • setInputMode(window: number, mode: number, value: number | boolean): void

Const setJoystickCallback

  • setJoystickCallback(callback: null | ((joystick: number, event: number) => void)): void

Const setKeyCallback

  • setKeyCallback(window: number, callback: null | ((window: number, key: number, scancode: number, action: number, mods: number) => void)): void
  • Parameters

    • window: number
    • callback: null | ((window: number, key: number, scancode: number, action: number, mods: number) => void)

    Returns void

Const setMonitorCallback

  • setMonitorCallback(callback: null | ((monitor: number, event: number) => void)): void

Const setMouseButtonCallback

  • setMouseButtonCallback(window: number, callback: null | ((window: number, button: number, action: number, mods: number) => void)): void
  • Parameters

    • window: number
    • callback: null | ((window: number, button: number, action: number, mods: number) => void)

    Returns void

Const setScrollCallback

  • setScrollCallback(window: number, callback: null | ((window: number, xoffset: number, yoffset: number) => void)): void
  • Parameters

    • window: number
    • callback: null | ((window: number, xoffset: number, yoffset: number) => void)

    Returns void

Const setTime

  • setTime(time: number): void

Const setWindowAspectRatio

  • setWindowAspectRatio(window: number, num: number, denom: number): void

Const setWindowAttrib

Const setWindowCloseCallback

  • setWindowCloseCallback(window: number, callback: null | ((window: number) => void)): void

Const setWindowContentScaleCallback

  • setWindowContentScaleCallback(window: number, callback: null | ((window: number, xscale: number, yscale: number) => void)): void
  • Parameters

    • window: number
    • callback: null | ((window: number, xscale: number, yscale: number) => void)

    Returns void

Const setWindowFocusCallback

  • setWindowFocusCallback(window: number, callback: null | ((window: number, focused: boolean) => void)): void

Const setWindowIcon

  • setWindowIcon(window: number, icon: GLFWimage): void

Const setWindowIconifyCallback

  • setWindowIconifyCallback(window: number, callback: null | ((window: number, iconified: boolean) => void)): void

Const setWindowMaximizeCallback

  • setWindowMaximizeCallback(window: number, callback: null | ((window: number, maximized: boolean) => void)): void

Const setWindowMonitor

  • setWindowMonitor(window: number, monitor: number): void

Const setWindowOpacity

  • setWindowOpacity(window: number, opacity: number): void

Const setWindowPos

  • setWindowPos(window: number, position: GLFWPosition): void

Const setWindowPosCallback

  • setWindowPosCallback(window: number, callback: null | ((window: number, x: number, y: number) => void)): void
  • Parameters

    • window: number
    • callback: null | ((window: number, x: number, y: number) => void)

    Returns void

Const setWindowRefreshCallback

  • setWindowRefreshCallback(window: number, callback: null | ((window: number) => void)): void

Const setWindowShouldClose

  • setWindowShouldClose(window: number, shouldClose: boolean): void

Const setWindowSize

  • setWindowSize(window: number, size: GLFWSize): void

Const setWindowSizeCallback

  • setWindowSizeCallback(window: number, callback: null | ((window: number, width: number, height: number) => void)): void
  • Parameters

    • window: number
    • callback: null | ((window: number, width: number, height: number) => void)

    Returns void

Const setWindowSizeLimits

  • setWindowSizeLimits(window: number, limits: GLFWSizeLimits): void

Const setWindowTitle

  • setWindowTitle(window: number, title: string): void

Const showWindow

  • showWindow(window: number): void

Const swapBuffers

  • swapBuffers(window: number): void

Const swapInterval

  • swapInterval(interval: number): void

Const terminate

  • terminate(): void

Const updateGamepadMappings

  • updateGamepadMappings(mappings: string): void

Const vulkanSupported

  • vulkanSupported(): boolean

Const waitEvents

  • waitEvents(): void

Const waitEventsTimeout

  • waitEventsTimeout(timeout: number): void

Const windowHint

Const windowHintString

  • windowHintString(hint: string, value: number | boolean): void

Const windowShouldClose

  • windowShouldClose(window: number): boolean