Class Color
java.lang.Object
com.raylib.jextract.Color
struct Color {
unsigned char r;
unsigned char g;
unsigned char b;
unsigned char a;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte
a
(MemorySegment struct) Getter for field:unsigned char a
static void
a
(MemorySegment struct, byte fieldValue) Setter for field:unsigned char a
static final ValueLayout.OfByte
a$layout()
Layout for field:unsigned char a
static final long
a$offset()
Offset for field:unsigned char a
static MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static byte
b
(MemorySegment struct) Getter for field:unsigned char b
static void
b
(MemorySegment struct, byte fieldValue) Setter for field:unsigned char b
static final ValueLayout.OfByte
b$layout()
Layout for field:unsigned char b
static final long
b$offset()
Offset for field:unsigned char b
static byte
g
(MemorySegment struct) Getter for field:unsigned char g
static void
g
(MemorySegment struct, byte fieldValue) Setter for field:unsigned char g
static final ValueLayout.OfByte
g$layout()
Layout for field:unsigned char g
static final long
g$offset()
Offset for field:unsigned char g
static final GroupLayout
layout()
The layout of this structstatic byte
r
(MemorySegment struct) Getter for field:unsigned char r
static void
r
(MemorySegment struct, byte fieldValue) Setter for field:unsigned char r
static final ValueLayout.OfByte
r$layout()
Layout for field:unsigned char r
static final long
r$offset()
Offset for field:unsigned char r
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static long
sizeof()
The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
r$layout
Layout for field:unsigned char r
-
r$offset
public static final long r$offset()Offset for field:unsigned char r
-
r
Getter for field:unsigned char r
-
r
Setter for field:unsigned char r
-
g$layout
Layout for field:unsigned char g
-
g$offset
public static final long g$offset()Offset for field:unsigned char g
-
g
Getter for field:unsigned char g
-
g
Setter for field:unsigned char g
-
b$layout
Layout for field:unsigned char b
-
b$offset
public static final long b$offset()Offset for field:unsigned char b
-
b
Getter for field:unsigned char b
-
b
Setter for field:unsigned char b
-
a$layout
Layout for field:unsigned char a
-
a$offset
public static final long a$offset()Offset for field:unsigned char a
-
a
Getter for field:unsigned char a
-
a
Setter for field:unsigned char a
-
asSlice
Obtains a slice ofarrayParam
which selects the array element atindex
. The returned segment has addressarrayParam.address() + index * layout().byteSize()
-
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()
usingallocator
-
allocateArray
Allocate an array of sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizelayout().byteSize()
-
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizeelementCount * layout().byteSize()
-