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 recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionGLFWgammaramp(@NotNull MemorySegment segment) Creates an instance of aGLFWgammaramprecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GLFWgammarampstatic GLFWgammaramp.Ptr@Nullable ShortPtrblue()Note: the returnedShortPtrdoes not have correctShortPtr.size()property.@NotNull MemorySegmentblueRaw()voidblueRaw(@NotNull MemorySegment value) static GLFWgammarampclone(Arena arena, GLFWgammaramp src) final booleanIndicates whether some other object is "equal to" this one.@Nullable ShortPtrgreen()Note: the returnedShortPtrdoes not have correctShortPtr.size()property.@NotNull MemorySegmentgreenRaw()voidgreenRaw(@NotNull MemorySegment value) final inthashCode()Returns a hash code value for this object.@Nullable ShortPtrred()Note: the returnedShortPtrdoes not have correctShortPtr.size()property.@NotNull MemorySegmentredRaw()voidredRaw(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intsize()size(int value) final StringtoString()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 aGLFWgammaramprecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
red
Note: the returnedShortPtrdoes 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 returnedShortPtrdoes 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 returnedShortPtrdoes 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 thesegmentrecord component.
-