Package com.raylib.jextract
Class AutomationEvent
java.lang.Object
com.raylib.jextract.AutomationEvent
struct AutomationEvent {
unsigned int frame;
unsigned int type;
int params[4];
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 int
frame
(MemorySegment struct) Getter for field:unsigned int frame
static void
frame
(MemorySegment struct, int fieldValue) Setter for field:unsigned int frame
static final ValueLayout.OfInt
Layout for field:unsigned int frame
static final long
Offset for field:unsigned int frame
static final GroupLayout
layout()
The layout of this structstatic MemorySegment
params
(MemorySegment struct) Getter for field:int params[4]
static int
params
(MemorySegment struct, long index0) Indexed getter for field:int params[4]
static void
params
(MemorySegment struct, long index0, int fieldValue) Indexed setter for field:int params[4]
static void
params
(MemorySegment struct, MemorySegment fieldValue) Setter for field:int params[4]
static long[]
Dimensions for array field:int params[4]
static final SequenceLayout
Layout for field:int params[4]
static final long
Offset for field:int params[4]
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static long
sizeof()
The size (in bytes) of this structstatic int
type
(MemorySegment struct) Getter for field:unsigned int type
static void
type
(MemorySegment struct, int fieldValue) Setter for field:unsigned int type
static final ValueLayout.OfInt
Layout for field:unsigned int type
static final long
Offset for field:unsigned int type
-
Method Details
-
layout
The layout of this struct -
frame$layout
Layout for field:unsigned int frame
-
frame$offset
public static final long frame$offset()Offset for field:unsigned int frame
-
frame
Getter for field:unsigned int frame
-
frame
Setter for field:unsigned int frame
-
type$layout
Layout for field:unsigned int type
-
type$offset
public static final long type$offset()Offset for field:unsigned int type
-
type
Getter for field:unsigned int type
-
type
Setter for field:unsigned int type
-
params$layout
Layout for field:int params[4]
-
params$offset
public static final long params$offset()Offset for field:int params[4]
-
params
Getter for field:int params[4]
-
params
Setter for field:int params[4]
-
params$dimensions
public static long[] params$dimensions()Dimensions for array field:int params[4]
-
params
Indexed getter for field:int params[4]
-
params
Indexed setter for field:int params[4]
-
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
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}' -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-