Class mln_animation_options
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_animation_options
struct mln_animation_options {
uint32_t size;
uint32_t fields;
double duration_ms;
double velocity;
double min_zoom;
mln_unit_bezier easing;
}
-
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 MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static doubleduration_ms(MemorySegment struct) Getter for field:double duration_msstatic voidduration_ms(MemorySegment struct, double fieldValue) Setter for field:double duration_msstatic final ValueLayout.OfDoubleLayout for field:double duration_msstatic final longOffset for field:double duration_msstatic MemorySegmenteasing(MemorySegment struct) Getter for field:mln_unit_bezier easingstatic voideasing(MemorySegment struct, MemorySegment fieldValue) Setter for field:mln_unit_bezier easingstatic final GroupLayoutLayout for field:mln_unit_bezier easingstatic final longOffset for field:mln_unit_bezier easingstatic 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 final GroupLayoutlayout()The layout of this structstatic doublemin_zoom(MemorySegment struct) Getter for field:double min_zoomstatic voidmin_zoom(MemorySegment struct, double fieldValue) Setter for field:double min_zoomstatic final ValueLayout.OfDoubleLayout for field:double min_zoomstatic final longOffset for field:double min_zoomstatic 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 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 doublevelocity(MemorySegment struct) Getter for field:double velocitystatic voidvelocity(MemorySegment struct, double fieldValue) Setter for field:double velocitystatic final ValueLayout.OfDoubleLayout for field:double velocitystatic final longOffset for field:double velocity
-
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 -
duration_ms$layout
Layout for field:double duration_ms -
duration_ms$offset
public static final long duration_ms$offset()Offset for field:double duration_ms -
duration_ms
Getter for field:double duration_ms -
duration_ms
Setter for field:double duration_ms -
velocity$layout
Layout for field:double velocity -
velocity$offset
public static final long velocity$offset()Offset for field:double velocity -
velocity
Getter for field:double velocity -
velocity
Setter for field:double velocity -
min_zoom$layout
Layout for field:double min_zoom -
min_zoom$offset
public static final long min_zoom$offset()Offset for field:double min_zoom -
min_zoom
Getter for field:double min_zoom -
min_zoom
Setter for field:double min_zoom -
easing$layout
Layout for field:mln_unit_bezier easing -
easing$offset
public static final long easing$offset()Offset for field:mln_unit_bezier easing -
easing
Getter for field:mln_unit_bezier easing -
easing
Setter for field:mln_unit_bezier easing -
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()
-