Class GLFWWindow.WindowAdapter
java.lang.Object
com.blackrook.gloop.glfw.GLFWWindow.WindowAdapter
- All Implemented Interfaces:
GLFWWindow.WindowListener
- Enclosing class:
GLFWWindow
An implementation of
GLFWWindow.WindowListener that provides a blank, no-op
implementation so that only the desired functions need overriding.- Author:
- Matthew Tropiano
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonBlur(GLFWWindow window) Called on a window blur event.voidonClose(GLFWWindow window) Called on a window close event.voidonContentScaleChange(GLFWWindow window, float x, float y) Called on a window content scale change event.voidonFocus(GLFWWindow window) Called on a window focus event.voidonFramebufferChange(GLFWWindow window, int width, int height) Called on a window frame buffer change event.voidonIconify(GLFWWindow window) Called on a window iconified event.voidonMaximize(GLFWWindow window) Called on a window maximized event.voidonMouseEntered(GLFWWindow window) Called when the mouse cursor enters the window.voidonMouseExited(GLFWWindow window) Called when the mouse cursor exits the window.voidonPositionChange(GLFWWindow window, int x, int y) Called on a window position change event.voidonRefresh(GLFWWindow window) Called on a window refresh event.voidonRestore(GLFWWindow window) Called on a window restore event.voidonSizeChange(GLFWWindow window, int width, int height) Called on a window size change event.
-
Constructor Details
-
WindowAdapter
public WindowAdapter()
-
-
Method Details
-
onClose
Description copied from interface:GLFWWindow.WindowListenerCalled on a window close event.- Specified by:
onClosein interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.
-
onRefresh
Description copied from interface:GLFWWindow.WindowListenerCalled on a window refresh event.- Specified by:
onRefreshin interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.
-
onFocus
Description copied from interface:GLFWWindow.WindowListenerCalled on a window focus event.- Specified by:
onFocusin interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.
-
onBlur
Description copied from interface:GLFWWindow.WindowListenerCalled on a window blur event.- Specified by:
onBlurin interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.
-
onIconify
Description copied from interface:GLFWWindow.WindowListenerCalled on a window iconified event.- Specified by:
onIconifyin interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.
-
onRestore
Description copied from interface:GLFWWindow.WindowListenerCalled on a window restore event.- Specified by:
onRestorein interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.
-
onMaximize
Description copied from interface:GLFWWindow.WindowListenerCalled on a window maximized event.- Specified by:
onMaximizein interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.
-
onMouseEntered
Description copied from interface:GLFWWindow.WindowListenerCalled when the mouse cursor enters the window.- Specified by:
onMouseEnteredin interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.
-
onMouseExited
Description copied from interface:GLFWWindow.WindowListenerCalled when the mouse cursor exits the window.- Specified by:
onMouseExitedin interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.
-
onPositionChange
Description copied from interface:GLFWWindow.WindowListenerCalled on a window position change event.- Specified by:
onPositionChangein interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.x- the new x-coordinate (upper-left corner).y- the new y-coordinate (upper-left corner).
-
onSizeChange
Description copied from interface:GLFWWindow.WindowListenerCalled on a window size change event.- Specified by:
onSizeChangein interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.width- the new width.height- the new height.
-
onFramebufferChange
Description copied from interface:GLFWWindow.WindowListenerCalled on a window frame buffer change event.- Specified by:
onFramebufferChangein interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.width- the new width.height- the new height.
-
onContentScaleChange
Description copied from interface:GLFWWindow.WindowListenerCalled on a window content scale change event.- Specified by:
onContentScaleChangein interfaceGLFWWindow.WindowListener- Parameters:
window- the source window.x- the x-scaling.y- the y-scaling.
-