Record Class GLFWgammaramp
java.lang.Object
java.lang.Record
club.doki7.glfw.datatype.GLFWgammaramp
- All Implemented Interfaces:
IPointer
,IGLFWgammaramp
@ValueBasedCandidate
@UnsafeConstructor
public record GLFWgammaramp(@NotNull MemorySegment segment)
extends Record
implements IGLFWgammaramp
- Since:
- Added in version 3.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 AddressLayout
static final AddressLayout
static final AddressLayout
static final ValueLayout.OfInt
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 long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionGLFWgammaramp
(@NotNull MemorySegment segment) Creates an instance of aGLFWgammaramp
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GLFWgammaramp
static GLFWgammaramp.Ptr
@Nullable ShortPtr
blue()
Note: the returnedShortPtr
does not have correctShortPtr.size()
property.blueRaw()
void
blueRaw
(MemorySegment value) static GLFWgammaramp
clone
(Arena arena, GLFWgammaramp src) final boolean
Indicates whether some other object is "equal to" this one.@Nullable ShortPtr
green()
Note: the returnedShortPtr
does not have correctShortPtr.size()
property.greenRaw()
void
greenRaw
(MemorySegment value) final int
hashCode()
Returns a hash code value for this object.@Nullable ShortPtr
red()
Note: the returnedShortPtr
does not have correctShortPtr.size()
property.redRaw()
void
redRaw
(MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
size()
size
(int value) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$red
-
PATH$green
-
PATH$blue
-
PATH$size
-
LAYOUT$red
-
LAYOUT$green
-
LAYOUT$blue
-
LAYOUT$size
-
SIZE$red
public static final long SIZE$red -
SIZE$green
public static final long SIZE$green -
SIZE$blue
public static final long SIZE$blue -
SIZE$size
public static final long SIZE$size -
OFFSET$red
public static final long OFFSET$red -
OFFSET$green
public static final long OFFSET$green -
OFFSET$blue
public static final long OFFSET$blue -
OFFSET$size
public static final long OFFSET$size
-
-
Constructor Details
-
GLFWgammaramp
Creates an instance of aGLFWgammaramp
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
red
Note: the returnedShortPtr
does not have correctShortPtr.size()
property. It's up to user to track the size of the buffer, and useShortPtr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
red
-
redRaw
-
redRaw
-
green
Note: the returnedShortPtr
does not have correctShortPtr.size()
property. It's up to user to track the size of the buffer, and useShortPtr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
green
-
greenRaw
-
greenRaw
-
blue
Note: the returnedShortPtr
does not have correctShortPtr.size()
property. It's up to user to track the size of the buffer, and useShortPtr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
blue
-
blueRaw
-
blueRaw
-
size
public int size() -
size
-
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.
-