ed7cdaf50fc8b3282d3dee33834a03298127d93b
[navit-package] / src / navit.h
1 #ifndef NAVIT_NAVIT_H
2 #define NAVIT_NAVIT_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 extern struct gui *main_loop_gui;
8 /* prototypes */
9 enum item_type;
10 enum projection;
11 struct callback;
12 struct color;
13 struct coord;
14 struct pcoord;
15 struct displaylist;
16 struct graphics;
17 struct gui;
18 struct layout;
19 struct mapset;
20 struct menu;
21 struct navigation;
22 struct navit;
23 struct navit_vehicle;
24 struct navit_window_items;
25 struct point;
26 struct route;
27 struct speech;
28 struct tracking;
29 struct transformation;
30 struct vehicle;
31 void navit_add_mapset(struct navit *this_, struct mapset *ms);
32 struct mapset *navit_get_mapset(struct navit *this_);
33 struct tracking *navit_get_tracking(struct navit *this_);
34 void navit_add_layout(struct navit *this_, struct layout *lay);
35 void navit_draw(struct navit *this_);
36 void navit_draw_displaylist(struct navit *this_);
37 void navit_zoom_in(struct navit *this_, int factor, struct point *p);
38 void navit_zoom_out(struct navit *this_, int factor, struct point *p);
39 struct navit *navit_new(struct pcoord *center, int zoom);
40 void navit_set_gui(struct navit *this_, struct gui *gui, char *type);
41 void navit_set_graphics(struct navit *this_, struct graphics *gra, char *type);
42 struct graphics *navit_get_graphics(struct navit *this_);
43 void navit_set_destination(struct navit *this_, struct pcoord *c, char *description);
44 void navit_add_bookmark(struct navit *this_, struct pcoord *c, char *description);
45 void navit_add_menu_layouts(struct navit *this_, struct menu *men);
46 void navit_add_menu_layout(struct navit *this_, struct menu *men);
47 void navit_add_menu_projections(struct navit *this_, struct menu *men);
48 void navit_add_menu_projection(struct navit *this_, struct menu *men);
49 void navit_add_menu_maps(struct navit *this_, struct mapset *ms, struct menu *men);
50 void navit_add_menu_former_destinations(struct navit *this_, struct menu *men, struct route *route);
51 void navit_add_menu_bookmarks(struct navit *this_, struct menu *men);
52 void navit_add_menu_vehicles(struct navit *this_, struct menu *men);
53 void navit_add_menu_vehicle(struct navit *this_, struct menu *men);
54 void navit_speak(struct navit *this_);
55 void navit_window_roadbook_destroy(struct navit *this_);
56 void navit_window_roadbook_new(struct navit *this_);
57 struct navit_window_items *navit_window_items_new(const char *name, int distance);
58 void navit_window_items_add_item(struct navit_window_items *nwi, enum item_type type);
59 void navit_add_window_items(struct navit *this_, struct navit_window_items *nwi);
60 void navit_add_menu_windows_items(struct navit *this_, struct menu *men);
61 void navit_init(struct navit *this_);
62 void navit_set_center(struct navit *this_, struct coord *center);
63 void navit_set_center_screen(struct navit *this_, struct point *p);
64 void navit_toggle_cursor(struct navit *this_);
65 void navit_toggle_tracking(struct navit *this_);
66 void navit_toggle_orient_north(struct navit *this_);
67 void navit_set_position(struct navit *this_, struct pcoord *c);
68 struct navit_vehicle *navit_add_vehicle(struct navit *this_, struct vehicle *v, const char *name, struct color *c, int update, int follow);
69 void navit_add_vehicle_cb(struct navit *this_, struct callback *cb);
70 void navit_remove_vehicle_cb(struct navit *this_, struct callback *cb);
71 void navit_add_init_cb(struct navit *this_, struct callback *cb);
72 void navit_remove_init_cb(struct navit *this_, struct callback *cb);
73 void navit_set_vehicle(struct navit *this_, struct navit_vehicle *nv);
74 void navit_tracking_add(struct navit *this_, struct tracking *tracking);
75 void navit_route_add(struct navit *this_, struct route *route);
76 void navit_navigation_add(struct navit *this_, struct navigation *navigation);
77 void navit_set_speech(struct navit *this_, struct speech *speech);
78 struct gui *navit_get_gui(struct navit *this_);
79 struct transformation *navit_get_trans(struct navit *this_);
80 struct route *navit_get_route(struct navit *this_);
81 struct navigation *navit_get_navigation(struct navit *this_);
82 struct displaylist *navit_get_displaylist(struct navit *this_);
83 void navit_destroy(struct navit *this_);
84 void navit_toggle_routegraph_display(struct navit *nav);
85
86 /* end of prototypes */
87 #ifdef __cplusplus
88 }
89 #endif
90
91 #endif
92