Class mln_camera_options
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_camera_options
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 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 MemorySegmentanchor(MemorySegment struct) Getter for field:mln_screen_point anchorstatic voidanchor(MemorySegment struct, MemorySegment fieldValue) Setter for field:mln_screen_point anchorstatic final GroupLayoutLayout for field:mln_screen_point anchorstatic final longOffset for field:mln_screen_point anchorstatic MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static doublebearing(MemorySegment struct) Getter for field:double bearingstatic voidbearing(MemorySegment struct, double fieldValue) Setter for field:double bearingstatic final ValueLayout.OfDoubleLayout for field:double bearingstatic final longOffset for field:double bearingstatic doublecenter_altitude(MemorySegment struct) Getter for field:double center_altitudestatic voidcenter_altitude(MemorySegment struct, double fieldValue) Setter for field:double center_altitudestatic final ValueLayout.OfDoubleLayout for field:double center_altitudestatic final longOffset for field:double center_altitudestatic doublefield_of_view(MemorySegment struct) Getter for field:double field_of_viewstatic voidfield_of_view(MemorySegment struct, double fieldValue) Setter for field:double field_of_viewstatic final ValueLayout.OfDoubleLayout for field:double field_of_viewstatic final longOffset for field:double field_of_viewstatic intfields(MemorySegment struct) Getter for field:uint32_t fieldsstatic voidfields(MemorySegment struct, int fieldValue) Setter for field:uint32_t fieldsstatic final ValueLayout.OfIntLayout for field:uint32_t fieldsstatic final longOffset for field:uint32_t fieldsstatic doublelatitude(MemorySegment struct) Getter for field:double latitudestatic voidlatitude(MemorySegment struct, double fieldValue) Setter for field:double latitudestatic final ValueLayout.OfDoubleLayout for field:double latitudestatic final longOffset for field:double latitudestatic final GroupLayoutlayout()The layout of this structstatic doublelongitude(MemorySegment struct) Getter for field:double longitudestatic voidlongitude(MemorySegment struct, double fieldValue) Setter for field:double longitudestatic final ValueLayout.OfDoubleLayout for field:double longitudestatic final longOffset for field:double longitudestatic MemorySegmentpadding(MemorySegment struct) Getter for field:mln_edge_insets paddingstatic voidpadding(MemorySegment struct, MemorySegment fieldValue) Setter for field:mln_edge_insets paddingstatic final GroupLayoutLayout for field:mln_edge_insets paddingstatic final longOffset for field:mln_edge_insets paddingstatic doublepitch(MemorySegment struct) Getter for field:double pitchstatic voidpitch(MemorySegment struct, double fieldValue) Setter for field:double pitchstatic final ValueLayout.OfDoubleLayout for field:double pitchstatic final longOffset for field:double pitchstatic 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 doubleroll(MemorySegment struct) Getter for field:double rollstatic voidroll(MemorySegment struct, double fieldValue) Setter for field:double rollstatic final ValueLayout.OfDoubleLayout for field:double rollstatic final longOffset for field:double rollstatic intsize(MemorySegment struct) Getter for field:uint32_t sizestatic voidsize(MemorySegment struct, int fieldValue) Setter for field:uint32_t sizestatic final ValueLayout.OfIntLayout for field:uint32_t sizestatic final longOffset for field:uint32_t sizestatic longsizeof()The size (in bytes) of this structstatic doublezoom(MemorySegment struct) Getter for field:double zoomstatic voidzoom(MemorySegment struct, double fieldValue) Setter for field:double zoomstatic final ValueLayout.OfDoubleLayout for field:double zoomstatic final longOffset for field:double zoom
-
Method Details
-
layout
The layout of this struct -
size$layout
Layout for field:uint32_t size -
size$offset
public static final long size$offset()Offset for field:uint32_t size -
size
Getter for field:uint32_t size -
size
Setter for field:uint32_t size -
fields$layout
Layout for field:uint32_t fields -
fields$offset
public static final long fields$offset()Offset for field:uint32_t fields -
fields
Getter for field:uint32_t fields -
fields
Setter for field:uint32_t fields -
latitude$layout
Layout for field:double latitude -
latitude$offset
public static final long latitude$offset()Offset for field:double latitude -
latitude
Getter for field:double latitude -
latitude
Setter for field:double latitude -
longitude$layout
Layout for field:double longitude -
longitude$offset
public static final long longitude$offset()Offset for field:double longitude -
longitude
Getter for field:double longitude -
longitude
Setter for field:double longitude -
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
Getter for field:double center_altitude -
center_altitude
Setter for field:double center_altitude -
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
Getter for field:mln_edge_insets padding -
padding
Setter for field:mln_edge_insets padding -
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
Getter for field:mln_screen_point anchor -
anchor
Setter for field:mln_screen_point anchor -
zoom$layout
Layout for field:double zoom -
zoom$offset
public static final long zoom$offset()Offset for field:double zoom -
zoom
Getter for field:double zoom -
zoom
Setter for field:double zoom -
bearing$layout
Layout for field:double bearing -
bearing$offset
public static final long bearing$offset()Offset for field:double bearing -
bearing
Getter for field:double bearing -
bearing
Setter for field:double bearing -
pitch$layout
Layout for field:double pitch -
pitch$offset
public static final long pitch$offset()Offset for field:double pitch -
pitch
Getter for field:double pitch -
pitch
Setter for field:double pitch -
roll$layout
Layout for field:double roll -
roll$offset
public static final long roll$offset()Offset for field:double roll -
roll
Getter for field:double roll -
roll
Setter for field:double roll -
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
Getter for field:double field_of_view -
field_of_view
Setter for field:double field_of_view -
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()
-