Index
All Classes and Interfaces|All Packages
A
- addListener(WindowEventListener) - Method in class io.github.ocelot.window.Window
-
Adds the specified listener to the event list.
- alt() - Method in record class io.github.ocelot.window.input.KeyMods
-
Returns the value of the
altrecord component.
B
- blueBits() - Method in record class io.github.ocelot.window.VideoMode
-
Returns the value of the
blueBitsrecord component.
C
- caps() - Method in record class io.github.ocelot.window.input.KeyMods
-
Returns the value of the
capsrecord component. - center() - Method in class io.github.ocelot.window.Window
-
Centers this window on the current monitor.
- charTyped(Window, int, KeyMods) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when a character is typed.
- control() - Method in record class io.github.ocelot.window.input.KeyMods
-
Returns the value of the
controlrecord component. - create(int, int, boolean) - Method in class io.github.ocelot.window.WindowManager
-
Creates a new window without initializing it.
- create(CharSequence) - Method in class io.github.ocelot.window.Window
-
Creates this window with GLFW.
- create(CharSequence, int, int, boolean) - Method in class io.github.ocelot.window.WindowManager
-
Creates a new window and initializes it.
- create(CharSequence, int, int, boolean, long) - Method in class io.github.ocelot.window.WindowManager
-
Creates a new window and initializes it.
- create(CharSequence, long) - Method in class io.github.ocelot.window.Window
-
Creates this window with GLFW.
- createKeyboardHandler() - Method in class io.github.ocelot.window.Window
-
Creates the default implementation of key tracking and automatically adds it to the listeners.
- createMouseHandler() - Method in class io.github.ocelot.window.Window
-
Creates the default implementation of mouse tracking and automatically adds it to the listeners.
- cursorEntered(Window, boolean) - Method in class io.github.ocelot.window.input.MouseHandler
- cursorEntered(Window, boolean) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when the mouse enters or exists the window.
E
- equals(Object) - Method in record class io.github.ocelot.window.input.KeyMods
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.ocelot.window.VideoMode
-
Indicates whether some other object is "equal to" this one.
F
- filesDropped(Window, Path...) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when files are dropped onto the window.
- findBestMonitor(Window) - Method in class io.github.ocelot.window.WindowManager
-
Finds the best monitor to use for fullscreen based on how much each monitor covers the window.
- focusChanged(Window, boolean) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when the window enters or exits focus.
- framebufferResized(Window, int, int) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when the window framebuffer is resized.
- free() - Method in class io.github.ocelot.window.Window
- free() - Method in class io.github.ocelot.window.WindowManager
G
- getAccumulatedDX() - Method in class io.github.ocelot.window.input.MouseHandler
- getAccumulatedDY() - Method in class io.github.ocelot.window.input.MouseHandler
- getClipboard() - Method in class io.github.ocelot.window.Window
- getCurrentMode() - Method in class io.github.ocelot.window.Monitor
- getFramebufferHeight() - Method in class io.github.ocelot.window.Window
- getFramebufferWidth() - Method in class io.github.ocelot.window.Window
- getGLFWError() - Static method in class io.github.ocelot.window.WindowManager
- getHandle() - Method in class io.github.ocelot.window.Monitor
- getHandle() - Method in class io.github.ocelot.window.Window
- getMonitor(long) - Method in class io.github.ocelot.window.WindowManager
-
Retrieves the monitor with the specified id.
- getMouseDX() - Method in class io.github.ocelot.window.input.MouseHandler
- getMouseDY() - Method in class io.github.ocelot.window.input.MouseHandler
- getMouseX() - Method in class io.github.ocelot.window.input.MouseHandler
- getMouseY() - Method in class io.github.ocelot.window.input.MouseHandler
- getSwapInterval() - Method in class io.github.ocelot.window.Window
- getTitle() - Method in class io.github.ocelot.window.Window
- getVideoModes() - Method in class io.github.ocelot.window.Monitor
- getWindowHeight() - Method in class io.github.ocelot.window.Window
- getWindowWidth() - Method in class io.github.ocelot.window.Window
- getX() - Method in class io.github.ocelot.window.Monitor
- getX() - Method in class io.github.ocelot.window.Window
- getY() - Method in class io.github.ocelot.window.Monitor
- getY() - Method in class io.github.ocelot.window.Window
- grabMouse() - Method in class io.github.ocelot.window.input.MouseHandler
-
Grabs the mouse by disabling it and moving it to the center of the window.
- greenBits() - Method in record class io.github.ocelot.window.VideoMode
-
Returns the value of the
greenBitsrecord component.
H
- hashCode() - Method in record class io.github.ocelot.window.input.KeyMods
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.ocelot.window.VideoMode
-
Returns a hash code value for this object.
- height() - Method in record class io.github.ocelot.window.VideoMode
-
Returns the value of the
heightrecord component.
I
- ignoreFirstMovement() - Method in class io.github.ocelot.window.input.MouseHandler
-
Ignores the first movement velocity of the mouse.
- io.github.ocelot.window - package io.github.ocelot.window
- io.github.ocelot.window.input - package io.github.ocelot.window.input
- isButtonPressed(int) - Method in class io.github.ocelot.window.input.MouseHandler
-
Checks if the specified mouse button is pressed.
- isClosed() - Method in class io.github.ocelot.window.Window
- isFocused() - Method in class io.github.ocelot.window.Window
- isFullscreen() - Method in class io.github.ocelot.window.Window
- isKeyPressed(int) - Method in class io.github.ocelot.window.input.KeyboardHandler
-
Checks to see if the specified key is pressed.
- isKeyPressed(int, int) - Method in class io.github.ocelot.window.input.KeyboardHandler
-
Checks to see if the specified key or scan code is pressed.
- isMouseGrabbed() - Method in class io.github.ocelot.window.input.MouseHandler
- isVsync() - Method in class io.github.ocelot.window.Window
K
- KeyboardHandler - Class in io.github.ocelot.window.input
-
Tracks pressed keys using keycode and scancode.
- KeyboardHandler() - Constructor for class io.github.ocelot.window.input.KeyboardHandler
- KeyMods - Record Class in io.github.ocelot.window.input
-
Boolean representations of each key modifier passed from GLFW.
- KeyMods(int) - Constructor for record class io.github.ocelot.window.input.KeyMods
- KeyMods(int, boolean, boolean, boolean, boolean, boolean, boolean) - Constructor for record class io.github.ocelot.window.input.KeyMods
-
Creates an instance of a
KeyModsrecord class. - keyPressed(Window, int, int, KeyMods) - Method in class io.github.ocelot.window.input.KeyboardHandler
- keyPressed(Window, int, int, KeyMods) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when a key on the keyboard is pressed.
- keyReleased(Window, int, int, KeyMods) - Method in class io.github.ocelot.window.input.KeyboardHandler
- keyReleased(Window, int, int, KeyMods) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when a key on the keyboard is released.
- keyRepeated(Window, int, int, KeyMods) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when a key on the keyboard is held util it repeats.
M
- mods() - Method in record class io.github.ocelot.window.input.KeyMods
-
Returns the value of the
modsrecord component. - Monitor - Class in io.github.ocelot.window
-
A monitor detected by GLFW that can be used in window creation.
- Monitor(long) - Constructor for class io.github.ocelot.window.Monitor
- MouseHandler - Class in io.github.ocelot.window.input
-
Tracks the mouse position, velocity, and pressed buttons.
- MouseHandler(Window) - Constructor for class io.github.ocelot.window.input.MouseHandler
- mouseMoved(Window, double, double) - Method in class io.github.ocelot.window.input.MouseHandler
- mouseMoved(Window, double, double) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when the mouse moves.
- mousePressed(Window, int, KeyMods) - Method in class io.github.ocelot.window.input.MouseHandler
- mousePressed(Window, int, KeyMods) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when a mouse button is pressed.
- mouseReleased(Window, int, KeyMods) - Method in class io.github.ocelot.window.input.MouseHandler
- mouseReleased(Window, int, KeyMods) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when a mouse button is released.
- mouseScrolled(Window, double, double) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when the mouse wheel is scrolled.
N
- numLock() - Method in record class io.github.ocelot.window.input.KeyMods
-
Returns the value of the
numLockrecord component.
R
- redBits() - Method in record class io.github.ocelot.window.VideoMode
-
Returns the value of the
redBitsrecord component. - refreshRate() - Method in record class io.github.ocelot.window.VideoMode
-
Returns the value of the
refreshRaterecord component. - refreshVideoModes() - Method in class io.github.ocelot.window.Monitor
-
Queries GLFW for the position and valid video modes of this monitor.
- releaseMouse() - Method in class io.github.ocelot.window.input.MouseHandler
-
Releases the mouse and sets its position to the center of the window.
- removeListener(WindowEventListener) - Method in class io.github.ocelot.window.Window
-
Removes the specified listener to the event list.
S
- setClosing(boolean) - Method in class io.github.ocelot.window.Window
-
Marks the window as closing or not.
- setFullscreen(boolean) - Method in class io.github.ocelot.window.Window
-
Sets the window fullscreen or not.
- setMacIcon(InputStream) - Static method in class io.github.ocelot.window.Window
-
Reads the icon from the stream and sends it to the OS to set the mac icon.
- setPosition(int, int) - Method in class io.github.ocelot.window.Window
-
Sets the absolute position of the window.
- setSize(int, int) - Method in class io.github.ocelot.window.Window
-
Sets the size of the window.
- setSwapInterval(int) - Method in class io.github.ocelot.window.Window
-
Sets the number of monitor frames to wait before continuing execution when
Window.swapBuffers()is called. - setTitle(CharSequence) - Method in class io.github.ocelot.window.Window
-
Updates the window title to the specified string.
- setVsync(boolean) - Method in class io.github.ocelot.window.Window
-
Sets the window to use vsync.
- shift() - Method in record class io.github.ocelot.window.input.KeyMods
-
Returns the value of the
shiftrecord component. - superKey() - Method in record class io.github.ocelot.window.input.KeyMods
-
Returns the value of the
superKeyrecord component. - swapBuffers() - Method in class io.github.ocelot.window.Window
-
Updates the contents of the window.
T
- toggleFullscreen() - Method in class io.github.ocelot.window.Window
-
Toggles the fullscreen flag.
- toString() - Method in record class io.github.ocelot.window.input.KeyMods
-
Returns a string representation of this record class.
- toString() - Method in class io.github.ocelot.window.Monitor
- toString() - Method in record class io.github.ocelot.window.VideoMode
-
Returns a string representation of this record class.
- toString() - Method in class io.github.ocelot.window.Window
U
- update() - Method in class io.github.ocelot.window.WindowManager
-
Polls window events and updates all windows.
V
- VideoMode - Record Class in io.github.ocelot.window
- VideoMode(int, int, int, int, int, int) - Constructor for record class io.github.ocelot.window.VideoMode
-
Creates an instance of a
VideoModerecord class. - VideoMode(GLFWVidMode) - Constructor for record class io.github.ocelot.window.VideoMode
- VideoMode(GLFWVidMode.Buffer) - Constructor for record class io.github.ocelot.window.VideoMode
W
- width() - Method in record class io.github.ocelot.window.VideoMode
-
Returns the value of the
widthrecord component. - Window - Class in io.github.ocelot.window
-
Manages and tracks certain key events for windows.
- windowClosed(Window) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when the window is closed.
- WindowEventListener - Interface in io.github.ocelot.window
-
Listens to events on a
Window. - WindowManager - Class in io.github.ocelot.window
-
Manages monitors and all windows created.
- WindowManager() - Constructor for class io.github.ocelot.window.WindowManager
- windowMoved(Window, int, int) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when the window is moved.
- windowResized(Window, int, int) - Method in interface io.github.ocelot.window.WindowEventListener
-
Called when the window is resized.
All Classes and Interfaces|All Packages