Record Class GLFWvidmode
java.lang.Object
java.lang.Record
club.doki7.glfw.datatype.GLFWvidmode
- All Implemented Interfaces:
IPointer
,IGLFWvidmode
@ValueBasedCandidate
@UnsafeConstructor
public record GLFWvidmode(@NotNull MemorySegment segment)
extends Record
implements IGLFWvidmode
- Since:
- Added in version 1.0.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionGLFWvidmode
(@NotNull MemorySegment segment) Creates an instance of aGLFWvidmode
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GLFWvidmode
static GLFWvidmode.Ptr
int
blueBits()
blueBits
(int value) static GLFWvidmode
clone
(Arena arena, GLFWvidmode src) final boolean
Indicates whether some other object is "equal to" this one.int
greenBits
(int value) final int
hashCode()
Returns a hash code value for this object.int
height()
height
(int value) int
redBits()
redBits
(int value) int
refreshRate
(int value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.int
width()
width
(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$width
-
PATH$height
-
PATH$redBits
-
PATH$greenBits
-
PATH$blueBits
-
PATH$refreshRate
-
LAYOUT$width
-
LAYOUT$height
-
LAYOUT$redBits
-
LAYOUT$greenBits
-
LAYOUT$blueBits
-
LAYOUT$refreshRate
-
SIZE$width
public static final long SIZE$width -
SIZE$height
public static final long SIZE$height -
SIZE$redBits
public static final long SIZE$redBits -
SIZE$greenBits
public static final long SIZE$greenBits -
SIZE$blueBits
public static final long SIZE$blueBits -
SIZE$refreshRate
public static final long SIZE$refreshRate -
OFFSET$width
public static final long OFFSET$width -
OFFSET$height
public static final long OFFSET$height -
OFFSET$redBits
public static final long OFFSET$redBits -
OFFSET$greenBits
public static final long OFFSET$greenBits -
OFFSET$blueBits
public static final long OFFSET$blueBits -
OFFSET$refreshRate
public static final long OFFSET$refreshRate
-
-
Constructor Details
-
GLFWvidmode
Creates an instance of aGLFWvidmode
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
width
public int width() -
width
-
height
public int height() -
height
-
redBits
public int redBits() -
redBits
-
greenBits
public int greenBits() -
greenBits
-
blueBits
public int blueBits() -
blueBits
-
refreshRate
public int refreshRate() -
refreshRate
-
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)
. -
segment
Returns the value of thesegment
record component.
-