Record Class GLFWwindow
java.lang.Object
java.lang.Record
dev.pfaff.glass.glfw.GLFWwindow
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandle -
Constructor Summary
ConstructorsConstructorDescriptionGLFWwindow(GLFW glfw, MemorySegment handle) Creates an instance of aGLFWwindowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull GLFWwindowcreate(GLFW glfw, int width, int height, String title, @Nullable GLFWmonitor monitor, @Nullable GLFWwindow share) voiddestroy()final booleanIndicates whether some other object is "equal to" this one.static @Nullable GLFWwindowgetCurrentContext(GLFW glfw) glfw()Returns the value of theglfwrecord component.handle()Returns the value of thehandlerecord component.final inthashCode()Returns a hash code value for this object.static booleanisExtensionSupported(GLFW glfw, String name) voidstatic voidsetBooleanHint(GLFW glfw, WindowHint hint, boolean value) static voidsetIntegerHint(GLFW glfw, WindowHint hint, int value) static voidsetSwapInterval(GLFW glfw, int interval) voidsetVisibility(boolean value) voidsetWindowSize(int width, int height) booleanvoidfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
MH_glfwMakeContextCurrent
-
MH_glfwGetCurrentContext
-
MH_glfwSwapInterval
-
MH_glfwExtensionSupported
-
MH_glfwCreateWindow
-
MH_glfwWindowHint
-
MH_glfwDestroyWindow
-
MH_glfwWindowShouldClose
-
MH_glfwGetFramebufferSize
-
MH_glfwGetWindowSize
-
MH_glfwGetWindowContentScale
-
MH_glfwSwapBuffers
-
MH_glfwShowWindow
-
MH_glfwHideWindow
-
MH_glfwSetWindowSize
-
-
Constructor Details
-
GLFWwindow
Creates an instance of aGLFWwindowrecord class.- Parameters:
glfw- the value for theglfwrecord componenthandle- the value for thehandlerecord component
-
-
Method Details
-
setIntegerHint
-
setBooleanHint
-
create
public static @NonNull GLFWwindow create(GLFW glfw, int width, int height, String title, @Nullable GLFWmonitor monitor, @Nullable GLFWwindow share) -
getCurrentContext
-
makeContextCurrent
public void makeContextCurrent() -
destroy
public void destroy() -
shouldClose
public boolean shouldClose() -
setVisibility
public void setVisibility(boolean value) -
getWindowSize
-
getFramebufferSize
-
getWindowContentScale
-
swapBuffers
public void swapBuffers() -
setSwapInterval
-
setWindowSize
public void setWindowSize(int width, int height) -
isExtensionSupported
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
glfw
Returns the value of theglfwrecord component.- Returns:
- the value of the
glfwrecord component
-
handle
Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-