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 recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionGLFWvidmode(@NotNull MemorySegment segment) Creates an instance of aGLFWvidmoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GLFWvidmodestatic GLFWvidmode.PtrintblueBits()blueBits(int value) static GLFWvidmodeclone(Arena arena, GLFWvidmode src) final booleanIndicates whether some other object is "equal to" this one.intgreenBits(int value) final inthashCode()Returns a hash code value for this object.intheight()height(int value) intredBits()redBits(int value) intrefreshRate(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.intwidth()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 aGLFWvidmoderecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-