Package org.lwjgl.glfw
Class GLFWErrorCallback
- java.lang.Object
-
- org.lwjgl.system.Callback
-
- org.lwjgl.glfw.GLFWErrorCallback
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, GLFWErrorCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.CallbackI.V, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
public abstract class GLFWErrorCallback extends org.lwjgl.system.Callback implements GLFWErrorCallbackI
Instances of this class may be passed to theSetErrorCallbackmethod.Type
void (*) ( int error, char *description )- Since:
- version 3.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lwjgl.system.CallbackI
org.lwjgl.system.CallbackI.B, org.lwjgl.system.CallbackI.D, org.lwjgl.system.CallbackI.F, org.lwjgl.system.CallbackI.I, org.lwjgl.system.CallbackI.J, org.lwjgl.system.CallbackI.P, org.lwjgl.system.CallbackI.S, org.lwjgl.system.CallbackI.V, org.lwjgl.system.CallbackI.Z
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.glfw.GLFWErrorCallbackI
SIGNATURE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static GLFWErrorCallbackcreate(GLFWErrorCallbackI instance)Creates aGLFWErrorCallbackinstance that delegates to the specifiedGLFWErrorCallbackIinstance.static GLFWErrorCallbackcreate(long functionPointer)Creates aGLFWErrorCallbackinstance from the specified function pointer.static GLFWErrorCallbackcreatePrint()Returns aGLFWErrorCallbackinstance that prints the error to theAPIUtil.DEBUG_STREAM.static GLFWErrorCallbackcreatePrint(java.io.PrintStream stream)Returns aGLFWErrorCallbackinstance that prints the error in the specifiedPrintStream.static GLFWErrorCallbackcreateSafe(long functionPointer)static GLFWErrorCallbackcreateThrow()Returns aGLFWErrorCallbackinstance that throws anIllegalStateExceptionwhen an error occurs.static java.lang.StringgetDescription(long description)Converts the specifiedGLFWErrorCallbackargument to a String.GLFWErrorCallbackset()SeeSetErrorCallback.-
Methods inherited from class org.lwjgl.system.Callback
__stdcall, address, equals, free, free, get, getSafe, hashCode, toString
-
Methods inherited from interface org.lwjgl.glfw.GLFWErrorCallbackI
callback, getSignature, invoke
-
-
-
-
Method Detail
-
create
public static GLFWErrorCallback create(long functionPointer)
Creates aGLFWErrorCallbackinstance from the specified function pointer.- Returns:
- the new
GLFWErrorCallback
-
createSafe
@Nullable public static GLFWErrorCallback createSafe(long functionPointer)
-
create
public static GLFWErrorCallback create(GLFWErrorCallbackI instance)
Creates aGLFWErrorCallbackinstance that delegates to the specifiedGLFWErrorCallbackIinstance.
-
getDescription
public static java.lang.String getDescription(long description)
Converts the specifiedGLFWErrorCallbackargument to a String.This method may only be used inside a GLFWErrorCallback invocation.
- Parameters:
description- pointer to the UTF-8 encoded description string- Returns:
- the description as a String
-
createPrint
public static GLFWErrorCallback createPrint()
Returns aGLFWErrorCallbackinstance that prints the error to theAPIUtil.DEBUG_STREAM.- Returns:
- the GLFWerrorCallback
-
createPrint
public static GLFWErrorCallback createPrint(java.io.PrintStream stream)
Returns aGLFWErrorCallbackinstance that prints the error in the specifiedPrintStream.- Parameters:
stream- the PrintStream to use- Returns:
- the GLFWerrorCallback
-
createThrow
public static GLFWErrorCallback createThrow()
Returns aGLFWErrorCallbackinstance that throws anIllegalStateExceptionwhen an error occurs.- Returns:
- the GLFWerrorCallback
-
set
public GLFWErrorCallback set()
SeeSetErrorCallback.
-
-