Class mln_edge_insets

java.lang.Object
org.maplibre.nativeffi.internal.c.mln_edge_insets

public class mln_edge_insets extends Object
struct mln_edge_insets {
    double top;
    double left;
    double bottom;
    double right;
}
  • Method Details

    • layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static void right(MemorySegment struct, double fieldValue)
      Setter for field:
      double right
      
    • 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()