MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
camera.h
Go to the documentation of this file.
1
5
6#ifndef MAPLIBRE_NATIVE_C_CAMERA_H
7#define MAPLIBRE_NATIVE_C_CAMERA_H
8
9#include <stddef.h>
10#include <stdint.h>
11
12#include "base.h"
13#include "map.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
23
26
30
33
37
43
47
50
64MLN_API mln_status
65mln_map_set_debug_options(mln_map map, uint32_t options) MLN_NOEXCEPT;
66
78MLN_API mln_status
79mln_map_get_debug_options(mln_map map, uint32_t* out_options) MLN_NOEXCEPT;
80
92 mln_map map, bool enabled
93) MLN_NOEXCEPT;
94
107 mln_map map, bool* out_enabled
108) MLN_NOEXCEPT;
109
121MLN_API mln_status
122mln_map_is_fully_loaded(mln_map map, bool* out_loaded) MLN_NOEXCEPT;
123
134MLN_API mln_status mln_map_dump_debug_logs(mln_map map) MLN_NOEXCEPT;
135
150 mln_map map, mln_map_viewport_options* out_options
151) MLN_NOEXCEPT;
152
168 mln_map map, const mln_map_viewport_options* options
169) MLN_NOEXCEPT;
170
185 mln_map map, mln_map_tile_options* out_options
186) MLN_NOEXCEPT;
187
204 mln_map map, const mln_map_tile_options* options
205) MLN_NOEXCEPT;
206
222MLN_API mln_status
223mln_map_get_camera(mln_map map, mln_camera_options* out_camera) MLN_NOEXCEPT;
224
241MLN_API mln_status
242mln_map_jump_to(mln_map map, const mln_camera_options* camera) MLN_NOEXCEPT;
243
279 mln_map map, const mln_camera_options* camera,
280 const mln_animation_options* animation
281) MLN_NOEXCEPT;
282
311 mln_map map, const mln_camera_options* camera,
312 const mln_animation_options* animation
313) MLN_NOEXCEPT;
314
326MLN_API mln_status
327mln_map_move_by(mln_map map, double delta_x, double delta_y) MLN_NOEXCEPT;
328
349 mln_map map, double delta_x, double delta_y,
350 const mln_animation_options* animation
351) MLN_NOEXCEPT;
352
367 mln_map map, double scale, const mln_screen_point* anchor
368) MLN_NOEXCEPT;
369
392 mln_map map, double scale, const mln_screen_point* anchor,
393 const mln_animation_options* animation
394) MLN_NOEXCEPT;
395
408 mln_map map, mln_screen_point first, mln_screen_point second
409) MLN_NOEXCEPT;
410
431 mln_map map, mln_screen_point first, mln_screen_point second,
432 const mln_animation_options* animation
433) MLN_NOEXCEPT;
434
446MLN_API mln_status mln_map_pitch_by(mln_map map, double pitch) MLN_NOEXCEPT;
447
468 mln_map map, double pitch, const mln_animation_options* animation
469) MLN_NOEXCEPT;
470
485MLN_API mln_status mln_map_cancel_transitions(mln_map map) MLN_NOEXCEPT;
486
505MLN_API mln_status
506mln_map_set_gesture_in_progress(mln_map map, bool in_progress) MLN_NOEXCEPT;
507
519MLN_API mln_status
520mln_map_is_gesture_in_progress(mln_map map, bool* out_in_progress) MLN_NOEXCEPT;
521
538 mln_map map, mln_lat_lng_bounds bounds,
539 const mln_camera_fit_options* fit_options, mln_camera_options* out_camera
540) MLN_NOEXCEPT;
541
559 mln_map map, const mln_lat_lng* coordinates, size_t coordinate_count,
560 const mln_camera_fit_options* fit_options, mln_camera_options* out_camera
561) MLN_NOEXCEPT;
562
582 mln_map map, mln_buffer_view geometry,
583 const mln_camera_fit_options* fit_options, mln_camera_options* out_camera
584) MLN_NOEXCEPT;
585
604 mln_map map, const mln_camera_options* camera, mln_lat_lng_bounds* out_bounds
605) MLN_NOEXCEPT;
606
624 mln_map map, const mln_camera_options* camera, mln_lat_lng_bounds* out_bounds
625) MLN_NOEXCEPT;
626
643MLN_API mln_status
644mln_map_get_bounds(mln_map map, mln_bound_options* out_options) MLN_NOEXCEPT;
645
664MLN_API mln_status
665mln_map_set_bounds(mln_map map, const mln_bound_options* options) MLN_NOEXCEPT;
666
681 mln_map map, mln_free_camera_options* out_options
682) MLN_NOEXCEPT;
683
702 mln_map map, const mln_free_camera_options* options
703) MLN_NOEXCEPT;
704
719 mln_map map, mln_projection_mode* out_mode
720) MLN_NOEXCEPT;
721
739 mln_map map, const mln_projection_mode* mode
740) MLN_NOEXCEPT;
741
757 mln_map map, mln_lat_lng coordinate, mln_screen_point* out_point
758) MLN_NOEXCEPT;
759
776 mln_map map, mln_screen_point point, mln_lat_lng* out_coordinate
777) MLN_NOEXCEPT;
778
796 mln_map map, mln_screen_point point, mln_lat_lng* out_coordinate
797) MLN_NOEXCEPT;
798
815 mln_map map, const mln_lat_lng* coordinates, size_t coordinate_count,
816 mln_screen_point* out_points
817) MLN_NOEXCEPT;
818
835 mln_map map, const mln_screen_point* points, size_t point_count,
836 mln_lat_lng* out_coordinates
837) MLN_NOEXCEPT;
838
857 mln_map map, const mln_screen_point* points, size_t point_count,
858 mln_lat_lng* out_coordinates
859) MLN_NOEXCEPT;
860
878 mln_map map, double latitude, double* out_meters_per_pixel
879) MLN_NOEXCEPT;
880
881#ifdef __cplusplus
882}
883#endif
884
885#endif // MAPLIBRE_NATIVE_C_CAMERA_H
mln_status
Definition base.h:39
mln_status mln_map_fly_to(mln_map map, const mln_camera_options *camera, const mln_animation_options *animation)
mln_status mln_map_lat_lng_for_pixel(mln_map map, mln_screen_point point, mln_lat_lng *out_coordinate)
mln_status mln_map_rotate_by_animated(mln_map map, mln_screen_point first, mln_screen_point second, const mln_animation_options *animation)
mln_status mln_map_cancel_transitions(mln_map map)
mln_status mln_map_lat_lng_bounds_for_camera(mln_map map, const mln_camera_options *camera, mln_lat_lng_bounds *out_bounds)
mln_status mln_map_set_projection_mode(mln_map map, const mln_projection_mode *mode)
mln_status mln_map_set_free_camera_options(mln_map map, const mln_free_camera_options *options)
mln_status mln_map_pitch_by(mln_map map, double pitch)
mln_status mln_map_get_bounds(mln_map map, mln_bound_options *out_options)
mln_status mln_map_pixels_for_lat_lngs(mln_map map, const mln_lat_lng *coordinates, size_t coordinate_count, mln_screen_point *out_points)
mln_status mln_map_scale_by(mln_map map, double scale, const mln_screen_point *anchor)
mln_status mln_map_pitch_by_animated(mln_map map, double pitch, const mln_animation_options *animation)
mln_status mln_map_dump_debug_logs(mln_map map)
mln_animation_options mln_animation_options_default(void)
mln_status mln_map_get_debug_options(mln_map map, uint32_t *out_options)
mln_camera_fit_options mln_camera_fit_options_default(void)
mln_status mln_map_scale_by_animated(mln_map map, double scale, const mln_screen_point *anchor, const mln_animation_options *animation)
mln_status mln_map_camera_for_lat_lngs(mln_map map, const mln_lat_lng *coordinates, size_t coordinate_count, const mln_camera_fit_options *fit_options, mln_camera_options *out_camera)
mln_status mln_map_ease_to(mln_map map, const mln_camera_options *camera, const mln_animation_options *animation)
mln_status mln_map_jump_to(mln_map map, const mln_camera_options *camera)
mln_status mln_map_is_gesture_in_progress(mln_map map, bool *out_in_progress)
mln_status mln_map_get_free_camera_options(mln_map map, mln_free_camera_options *out_options)
mln_status mln_map_set_tile_options(mln_map map, const mln_map_tile_options *options)
mln_free_camera_options mln_free_camera_options_default(void)
mln_status mln_map_get_projection_mode(mln_map map, mln_projection_mode *out_mode)
mln_status mln_map_rotate_by(mln_map map, mln_screen_point first, mln_screen_point second)
mln_status mln_map_move_by(mln_map map, double delta_x, double delta_y)
mln_status mln_map_lat_lngs_for_pixels_unwrapped(mln_map map, const mln_screen_point *points, size_t point_count, mln_lat_lng *out_coordinates)
mln_status mln_map_get_camera(mln_map map, mln_camera_options *out_camera)
mln_status mln_map_camera_for_geometry(mln_map map, mln_buffer_view geometry, const mln_camera_fit_options *fit_options, mln_camera_options *out_camera)
mln_status mln_map_camera_for_lat_lng_bounds(mln_map map, mln_lat_lng_bounds bounds, const mln_camera_fit_options *fit_options, mln_camera_options *out_camera)
mln_status mln_map_lat_lng_bounds_for_camera_unwrapped(mln_map map, const mln_camera_options *camera, mln_lat_lng_bounds *out_bounds)
mln_status mln_map_move_by_animated(mln_map map, double delta_x, double delta_y, const mln_animation_options *animation)
mln_status mln_map_get_tile_options(mln_map map, mln_map_tile_options *out_options)
mln_status mln_map_get_rendering_stats_view_enabled(mln_map map, bool *out_enabled)
mln_status mln_map_set_gesture_in_progress(mln_map map, bool in_progress)
mln_status mln_map_set_bounds(mln_map map, const mln_bound_options *options)
mln_status mln_map_meters_per_pixel_at_latitude(mln_map map, double latitude, double *out_meters_per_pixel)
mln_bound_options mln_bound_options_default(void)
mln_status mln_map_is_fully_loaded(mln_map map, bool *out_loaded)
mln_camera_options mln_camera_options_default(void)
mln_projection_mode mln_projection_mode_default(void)
mln_status mln_map_get_viewport_options(mln_map map, mln_map_viewport_options *out_options)
mln_map_viewport_options mln_map_viewport_options_default(void)
mln_status mln_map_lat_lngs_for_pixels(mln_map map, const mln_screen_point *points, size_t point_count, mln_lat_lng *out_coordinates)
mln_status mln_map_set_viewport_options(mln_map map, const mln_map_viewport_options *options)
mln_status mln_map_pixel_for_lat_lng(mln_map map, mln_lat_lng coordinate, mln_screen_point *out_point)
mln_status mln_map_set_debug_options(mln_map map, uint32_t options)
mln_status mln_map_set_rendering_stats_view_enabled(mln_map map, bool enabled)
mln_map_tile_options mln_map_tile_options_default(void)
mln_status mln_map_lat_lng_for_pixel_unwrapped(mln_map map, mln_screen_point point, mln_lat_lng *out_coordinate)
Definition map.h:256
Definition map.h:377
Definition base.h:103
Definition map.h:308
Definition map.h:224
Definition map.h:332
Definition map.h:371
Definition map.h:340
Definition map.h:903
Definition map.h:890
Definition map.h:878
Definition map.h:210