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 MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static intbottom(MemorySegment struct) Getter for field:int bottomstatic voidbottom(MemorySegment struct, int fieldValue) Setter for field:int bottomstatic final ValueLayout.OfIntLayout for field:int bottomstatic final longOffset for field:int bottomstatic final GroupLayoutlayout()The layout of this structstatic intlayout(MemorySegment struct) Getter for field:int layoutstatic voidlayout(MemorySegment struct, int fieldValue) Setter for field:int layoutstatic final ValueLayout.OfIntLayout for field:int layoutstatic final longOffset for field:int layoutstatic intleft(MemorySegment struct) Getter for field:int leftstatic voidleft(MemorySegment struct, int fieldValue) Setter for field:int leftstatic final ValueLayout.OfIntLayout for field:int leftstatic final longOffset for field:int leftstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static intright(MemorySegment struct) Getter for field:int rightstatic voidright(MemorySegment struct, int fieldValue) Setter for field:int rightstatic final ValueLayout.OfIntLayout for field:int rightstatic final longOffset for field:int rightstatic longsizeof()The size (in bytes) of this structstatic MemorySegmentsource(MemorySegment struct) Getter for field:Rectangle sourcestatic voidsource(MemorySegment struct, MemorySegment fieldValue) Setter for field:Rectangle sourcestatic final GroupLayoutLayout for field:Rectangle sourcestatic final longOffset for field:Rectangle sourcestatic inttop(MemorySegment struct) Getter for field:int topstatic voidtop(MemorySegment struct, int fieldValue) Setter for field:int topstatic final ValueLayout.OfIntLayout for field:int topstatic final longOffset 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 ofarrayParamwhich 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 sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-