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
239MLN_API mln_status
240mln_map_jump_to(mln_map map, const mln_camera_options* camera) MLN_NOEXCEPT;
241
268 mln_map map, const mln_camera_options* camera,
269 const mln_animation_options* animation
270) MLN_NOEXCEPT;
271
298 mln_map map, const mln_camera_options* camera,
299 const mln_animation_options* animation
300) MLN_NOEXCEPT;
301
313MLN_API mln_status
314mln_map_move_by(mln_map map, double delta_x, double delta_y) MLN_NOEXCEPT;
315
336 mln_map map, double delta_x, double delta_y,
337 const mln_animation_options* animation
338) MLN_NOEXCEPT;
339
354 mln_map map, double scale, const mln_screen_point* anchor
355) MLN_NOEXCEPT;
356
379 mln_map map, double scale, const mln_screen_point* anchor,
380 const mln_animation_options* animation
381) MLN_NOEXCEPT;
382
395 mln_map map, mln_screen_point first, mln_screen_point second
396) MLN_NOEXCEPT;
397
418 mln_map map, mln_screen_point first, mln_screen_point second,
419 const mln_animation_options* animation
420) MLN_NOEXCEPT;
421
433MLN_API mln_status mln_map_pitch_by(mln_map map, double pitch) MLN_NOEXCEPT;
434
455 mln_map map, double pitch, const mln_animation_options* animation
456) MLN_NOEXCEPT;
457
472MLN_API mln_status mln_map_cancel_transitions(mln_map map) MLN_NOEXCEPT;
473
492MLN_API mln_status
493mln_map_set_gesture_in_progress(mln_map map, bool in_progress) MLN_NOEXCEPT;
494
506MLN_API mln_status
507mln_map_is_gesture_in_progress(mln_map map, bool* out_in_progress) MLN_NOEXCEPT;
508
525 mln_map map, mln_lat_lng_bounds bounds,
526 const mln_camera_fit_options* fit_options, mln_camera_options* out_camera
527) MLN_NOEXCEPT;
528
546 mln_map map, const mln_lat_lng* coordinates, size_t coordinate_count,
547 const mln_camera_fit_options* fit_options, mln_camera_options* out_camera
548) MLN_NOEXCEPT;
549
569 mln_map map, mln_buffer_view geometry,
570 const mln_camera_fit_options* fit_options, mln_camera_options* out_camera
571) MLN_NOEXCEPT;
572
591 mln_map map, const mln_camera_options* camera, mln_lat_lng_bounds* out_bounds
592) MLN_NOEXCEPT;
593
611 mln_map map, const mln_camera_options* camera, mln_lat_lng_bounds* out_bounds
612) MLN_NOEXCEPT;
613
630MLN_API mln_status
631mln_map_get_bounds(mln_map map, mln_bound_options* out_options) MLN_NOEXCEPT;
632
651MLN_API mln_status
652mln_map_set_bounds(mln_map map, const mln_bound_options* options) MLN_NOEXCEPT;
653
668 mln_map map, mln_free_camera_options* out_options
669) MLN_NOEXCEPT;
670
689 mln_map map, const mln_free_camera_options* options
690) MLN_NOEXCEPT;
691
706 mln_map map, mln_projection_mode* out_mode
707) MLN_NOEXCEPT;
708
726 mln_map map, const mln_projection_mode* mode
727) MLN_NOEXCEPT;
728
744 mln_map map, mln_lat_lng coordinate, mln_screen_point* out_point
745) MLN_NOEXCEPT;
746
762 mln_map map, mln_screen_point point, mln_lat_lng* out_coordinate
763) MLN_NOEXCEPT;
764
781 mln_map map, const mln_lat_lng* coordinates, size_t coordinate_count,
782 mln_screen_point* out_points
783) MLN_NOEXCEPT;
784
800 mln_map map, const mln_screen_point* points, size_t point_count,
801 mln_lat_lng* out_coordinates
802) MLN_NOEXCEPT;
803
804#ifdef __cplusplus
805}
806#endif
807
808#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_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_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)
Definition map.h:256
Definition map.h:376
Definition base.h:103
Definition map.h:307
Definition map.h:224
Definition map.h:331
Definition map.h:370
Definition map.h:339
Definition map.h:891
Definition map.h:878
Definition map.h:866
Definition map.h:210