Package com.raylib.jextract
Class NPatchInfo
java.lang.Object
com.raylib.jextract.NPatchInfo
struct NPatchInfo {
Rectangle source;
int left;
int top;
int right;
int bottom;
int layout;
}
-
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
bottom
(MemorySegment struct) Getter for field:int bottom
static void
bottom
(MemorySegment struct, int fieldValue) Setter for field:int bottom
static final ValueLayout.OfInt
Layout for field:int bottom
static final long
Offset for field:int bottom
static final GroupLayout
layout()
The layout of this structstatic int
layout
(MemorySegment struct) Getter for field:int layout
static void
layout
(MemorySegment struct, int fieldValue) Setter for field:int layout
static final ValueLayout.OfInt
Layout for field:int layout
static final long
Offset for field:int layout
static int
left
(MemorySegment struct) Getter for field:int left
static void
left
(MemorySegment struct, int fieldValue) Setter for field:int left
static final ValueLayout.OfInt
Layout for field:int left
static final long
Offset for field:int left
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 int
right
(MemorySegment struct) Getter for field:int right
static void
right
(MemorySegment struct, int fieldValue) Setter for field:int right
static final ValueLayout.OfInt
Layout for field:int right
static final long
Offset for field:int right
static long
sizeof()
The size (in bytes) of this structstatic MemorySegment
source
(MemorySegment struct) Getter for field:Rectangle source
static void
source
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Rectangle source
static final GroupLayout
Layout for field:Rectangle source
static final long
Offset for field:Rectangle source
static int
top
(MemorySegment struct) Getter for field:int top
static void
top
(MemorySegment struct, int fieldValue) Setter for field:int top
static final ValueLayout.OfInt
Layout for field:int top
static final long
Offset for field:int top
-
Method Details
-
layout
The layout of this struct -
source$layout
Layout for field:Rectangle source
-
source$offset
public static final long source$offset()Offset for field:Rectangle source
-
source
Getter for field:Rectangle source
-
source
Setter for field:Rectangle source
-
left$layout
Layout for field:int left
-
left$offset
public static final long left$offset()Offset for field:int left
-
left
Getter for field:int left
-
left
Setter for field:int left
-
top$layout
Layout for field:int top
-
top$offset
public static final long top$offset()Offset for field:int top
-
top
Getter for field:int top
-
top
Setter for field:int top
-
right$layout
Layout for field:int right
-
right$offset
public static final long right$offset()Offset for field:int right
-
right
Getter for field:int right
-
right
Setter for field:int right
-
bottom$layout
Layout for field:int bottom
-
bottom$offset
public static final long bottom$offset()Offset for field:int bottom
-
bottom
Getter for field:int bottom
-
bottom
Setter for field:int bottom
-
layout$layout
Layout for field:int layout
-
layout$offset
public static final long layout$offset()Offset for field:int layout
-
layout
Getter for field:int layout
-
layout
Setter for field:int layout
-
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()}'
-