Package com.raylib.jextract
Class Rectangle
java.lang.Object
com.raylib.jextract.Rectangle
struct Rectangle {
float x;
float y;
float width;
float height;
}
-
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 float
height
(MemorySegment struct) Getter for field:float height
static void
height
(MemorySegment struct, float fieldValue) Setter for field:float height
static final ValueLayout.OfFloat
Layout for field:float height
static final long
Offset for field:float height
static final GroupLayout
layout()
The layout of this structstatic 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 float
width
(MemorySegment struct) Getter for field:float width
static void
width
(MemorySegment struct, float fieldValue) Setter for field:float width
static final ValueLayout.OfFloat
Layout for field:float width
static final long
Offset for field:float width
static float
x
(MemorySegment struct) Getter for field:float x
static void
x
(MemorySegment struct, float fieldValue) Setter for field:float x
static final ValueLayout.OfFloat
x$layout()
Layout for field:float x
static final long
x$offset()
Offset for field:float x
static float
y
(MemorySegment struct) Getter for field:float y
static void
y
(MemorySegment struct, float fieldValue) Setter for field:float y
static final ValueLayout.OfFloat
y$layout()
Layout for field:float y
static final long
y$offset()
Offset for field:float y
-
Method Details
-
layout
The layout of this struct -
x$layout
Layout for field:float x
-
x$offset
public static final long x$offset()Offset for field:float x
-
x
Getter for field:float x
-
x
Setter for field:float x
-
y$layout
Layout for field:float y
-
y$offset
public static final long y$offset()Offset for field:float y
-
y
Getter for field:float y
-
y
Setter for field:float y
-
width$layout
Layout for field:float width
-
width$offset
public static final long width$offset()Offset for field:float width
-
width
Getter for field:float width
-
width
Setter for field:float width
-
height$layout
Layout for field:float height
-
height$offset
public static final long height$offset()Offset for field:float height
-
height
Getter for field:float height
-
height
Setter for field:float height
-
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()}'
-