Class NPatchInfo

java.lang.Object
com.raylib.jextract.NPatchInfo

public class NPatchInfo extends Object
struct NPatchInfo {
    Rectangle source;
    int left;
    int top;
    int right;
    int bottom;
    int layout;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • source$layout

      public static final GroupLayout source$layout()
      Layout for field:
      Rectangle source
      
    • source$offset

      public static final long source$offset()
      Offset for field:
      Rectangle source
      
    • source

      public static MemorySegment source(MemorySegment struct)
      Getter for field:
      Rectangle source
      
    • source

      public static void source(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      Rectangle source
      
    • left$layout

      public static final ValueLayout.OfInt left$layout()
      Layout for field:
      int left
      
    • left$offset

      public static final long left$offset()
      Offset for field:
      int left
      
    • left

      public static int left(MemorySegment struct)
      Getter for field:
      int left
      
    • left

      public static void left(MemorySegment struct, int fieldValue)
      Setter for field:
      int left
      
    • top$layout

      public static final ValueLayout.OfInt top$layout()
      Layout for field:
      int top
      
    • top$offset

      public static final long top$offset()
      Offset for field:
      int top
      
    • top

      public static int top(MemorySegment struct)
      Getter for field:
      int top
      
    • top

      public static void top(MemorySegment struct, int fieldValue)
      Setter for field:
      int top
      
    • right$layout

      public static final ValueLayout.OfInt right$layout()
      Layout for field:
      int right
      
    • right$offset

      public static final long right$offset()
      Offset for field:
      int right
      
    • right

      public static int right(MemorySegment struct)
      Getter for field:
      int right
      
    • right

      public static void right(MemorySegment struct, int fieldValue)
      Setter for field:
      int right
      
    • bottom$layout

      public static final ValueLayout.OfInt bottom$layout()
      Layout for field:
      int bottom
      
    • bottom$offset

      public static final long bottom$offset()
      Offset for field:
      int bottom
      
    • bottom

      public static int bottom(MemorySegment struct)
      Getter for field:
      int bottom
      
    • bottom

      public static void bottom(MemorySegment struct, int fieldValue)
      Setter for field:
      int bottom
      
    • layout$layout

      public static final ValueLayout.OfInt layout$layout()
      Layout for field:
      int layout
      
    • layout$offset

      public static final long layout$offset()
      Offset for field:
      int layout
      
    • layout

      public static int layout(MemorySegment struct)
      Getter for field:
      int layout
      
    • layout

      public static void layout(MemorySegment struct, int fieldValue)
      Setter for field:
      int layout
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()