Class mln_map_options

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

public class mln_map_options extends Object
struct mln_map_options {
    uint32_t size;
    uint32_t width;
    uint32_t height;
    double scale_factor;
    uint32_t map_mode;
}
  • Method Details

    • layout

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

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

      public static final long size$offset()
      Offset for field:
      uint32_t size
      
    • size

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

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

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

      public static final long width$offset()
      Offset for field:
      uint32_t width
      
    • width

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

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

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

      public static final long height$offset()
      Offset for field:
      uint32_t height
      
    • height

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

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

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

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

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

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

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

      public static final long map_mode$offset()
      Offset for field:
      uint32_t map_mode
      
    • map_mode

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

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