Record Class GLFWwindow
java.lang.Object
java.lang.Record
dev.pfaff.glass.glfw.GLFWwindow
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
-
Constructor Summary
ConstructorsConstructorDescriptionGLFWwindow
(GLFW glfw, MemorySegment handle) Creates an instance of aGLFWwindow
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull GLFWwindow
create
(GLFW glfw, int width, int height, String title, @Nullable GLFWmonitor monitor, @Nullable GLFWwindow share) void
destroy()
final boolean
Indicates whether some other object is "equal to" this one.boolean
getBooleanWindowAttrib
(WindowAttrib attrib) @Nullable String
static @Nullable GLFWwindow
getCurrentContext
(GLFW glfw) int
getWindowAttrib
(WindowAttrib attrib) glfw()
Returns the value of theglfw
record component.handle()
Returns the value of thehandle
record component.final int
hashCode()
Returns a hash code value for this object.static boolean
isExtensionSupported
(GLFW glfw, String name) void
static void
setBooleanHint
(GLFW glfw, WindowHint hint, boolean value) void
setClipboardString
(String string) static void
setIntegerHint
(GLFW glfw, WindowHint hint, int value) static void
setSwapInterval
(GLFW glfw, int interval) void
setVisibility
(boolean value) void
setWindowSize
(int width, int height) boolean
void
final String
toString()
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_glfwGetWindowAttrib
-
MH_glfwGetClipboardString
-
MH_glfwSetClipboardString
-
MH_glfwSwapBuffers
-
MH_glfwShowWindow
-
MH_glfwHideWindow
-
MH_glfwSetWindowSize
-
-
Constructor Details
-
GLFWwindow
Creates an instance of aGLFWwindow
record class.- Parameters:
glfw
- the value for theglfw
record componenthandle
- the value for thehandle
record 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
-
getWindowAttrib
-
getBooleanWindowAttrib
-
getClipboardString
- Returns:
- the contents of the clipboard if UTF-8 encoded or convertible, or
null
if empty or inconvertible.
-
setClipboardString
-
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 theglfw
record component.- Returns:
- the value of the
glfw
record component
-
handle
Returns the value of thehandle
record component.- Returns:
- the value of the
handle
record component
-