Class mln_camera_options

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

public class mln_camera_options extends Object
struct mln_camera_options {
    uint32_t size;
    uint32_t fields;
    double latitude;
    double longitude;
    double center_altitude;
    mln_edge_insets padding;
    mln_screen_point anchor;
    double zoom;
    double bearing;
    double pitch;
    double roll;
    double field_of_view;
}
  • 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
      
    • fields$layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final GroupLayout padding$layout()
      Layout for field:
      mln_edge_insets padding
      
    • padding$offset

      public static final long padding$offset()
      Offset for field:
      mln_edge_insets padding
      
    • padding

      public static MemorySegment padding(MemorySegment struct)
      Getter for field:
      mln_edge_insets padding
      
    • padding

      public static void padding(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      mln_edge_insets padding
      
    • anchor$layout

      public static final GroupLayout anchor$layout()
      Layout for field:
      mln_screen_point anchor
      
    • anchor$offset

      public static final long anchor$offset()
      Offset for field:
      mln_screen_point anchor
      
    • anchor

      public static MemorySegment anchor(MemorySegment struct)
      Getter for field:
      mln_screen_point anchor
      
    • anchor

      public static void anchor(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      mln_screen_point anchor
      
    • zoom$layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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