navit 0.5.3-trunk
Loading...
Searching...
No Matches
navit.h
Go to the documentation of this file.
1
20#ifndef NAVIT_NAVIT_H
21#define NAVIT_NAVIT_H
22
23#define NAVIT_OBJECT \
24 struct object_func *func; \
25 int refcount; \
26 struct attr **attrs;
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31extern struct gui *main_loop_gui;
32
33#include <glib.h>
34
35/* prototypes */
36enum attr_type;
37struct attr;
38struct attr_iter;
39struct callback;
40struct coord_rect;
41struct displaylist;
42struct graphics;
43struct gui;
44struct layout;
45struct mapset;
46struct message;
47struct navigation;
48struct navit;
49struct pcoord;
50struct point;
51struct route;
52struct tracking;
53struct transformation;
54struct vehicleprofile;
55struct command_table;
56struct item;
57void navit_add_mapset(struct navit *this_, struct mapset *ms);
58struct mapset *navit_get_mapset(struct navit *this_);
59struct map *navit_get_search_results_map(struct navit *this_);
60int navit_populate_search_results_map(struct navit *navit, GList *search_results, struct coord_rect *r);
61struct tracking *navit_get_tracking(struct navit *this_);
62char *navit_get_user_data_directory(int create);
63void navit_draw_async(struct navit *this_, int async);
64void navit_draw(struct navit *this_);
65int navit_get_ready(struct navit *this_);
66void navit_draw_displaylist(struct navit *this_);
67void navit_handle_resize(struct navit *this_, int w, int h);
68int navit_get_width(struct navit *this_);
69int navit_get_height(struct navit *this_);
70int navit_ignore_button(struct navit *this_);
71void navit_ignore_graphics_events(struct navit *this_, int ignore);
72void navit_set_timeout(struct navit *this_);
73int navit_handle_button(struct navit *this_, int pressed, int button, struct point *p, struct callback *popup_callback);
74void navit_handle_motion(struct navit *this_, struct point *p);
75void navit_zoom_in(struct navit *this_, int factor, struct point *p);
76void navit_zoom_out(struct navit *this_, int factor, struct point *p);
77void navit_zoom_in_cursor(struct navit *this_, int factor);
78void navit_zoom_out_cursor(struct navit *this_, int factor);
79struct navit *navit_new(struct attr *parent, struct attr **attrs);
80void navit_add_message(struct navit *this_, const char *message);
81struct message *navit_get_messages(struct navit *this_);
82struct graphics *navit_get_graphics(struct navit *this_);
83struct vehicleprofile *navit_get_vehicleprofile(struct navit *this_);
84GList *navit_get_vehicleprofiles(struct navit *this_);
85void navit_set_destination(struct navit *this_, struct pcoord *c, const char *description, int async);
86void navit_set_destinations(struct navit *this_, struct pcoord *c, int count, const char *description, int async);
87void navit_add_destination_description(struct navit *this_, struct pcoord *c, const char *description);
88int navit_get_destinations(struct navit *this_, struct pcoord *pc, int count);
89int navit_get_destination_count(struct navit *this_);
90char *navit_get_destination_description(struct navit *this_, int n);
91void navit_remove_nth_waypoint(struct navit *this_, int n);
92void navit_remove_waypoint(struct navit *this_);
93char *navit_get_coord_description(struct navit *this_, struct pcoord *c);
94int navit_check_route(struct navit *this_);
96void navit_textfile_debug_log(struct navit *this_, const char *fmt, ...);
97void navit_textfile_debug_log_at(struct navit *this_, struct pcoord *pc, const char *fmt, ...);
98int navit_speech_estimate(struct navit *this_, char *str);
99void navit_say(struct navit *this_, const char *text);
100void navit_speak(struct navit *this_);
101void navit_window_roadbook_destroy(struct navit *this_);
102void navit_window_roadbook_new(struct navit *this_);
103int navit_init(struct navit *this_);
104void navit_zoom_to_rect(struct navit *this_, struct coord_rect *r);
105void navit_zoom_to_route(struct navit *this_, int orientation);
106void navit_set_center(struct navit *this_, struct pcoord *center, int set_timeout);
107void navit_set_center_cursor(struct navit *this_, int autozoom, int keep_orientation);
108void navit_set_center_screen(struct navit *this_, struct point *p, int set_timeout);
109void navit_drag_map(struct navit *this_, struct point *origin, struct point *destination);
110void navit_set_center_cursor_draw(struct navit *this_);
111int navit_set_attr(struct navit *this_, struct attr *attr);
112int navit_get_attr(struct navit *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
113struct layout *navit_get_layout_by_name(struct navit *this_, const char *layout_name);
114void navit_update_current_layout(struct navit *this_, struct layout *layout);
115int navit_add_attr(struct navit *this_, struct attr *attr);
116int navit_remove_attr(struct navit *this_, struct attr *attr);
117struct attr_iter *navit_attr_iter_new(void *unused);
119void navit_add_callback(struct navit *this_, struct callback *cb);
120void navit_remove_callback(struct navit *this_, struct callback *cb);
121void navit_set_position(struct navit *this_, struct pcoord *c);
122struct gui *navit_get_gui(struct navit *this_);
123struct transformation *navit_get_trans(struct navit *this_);
124struct route *navit_get_route(struct navit *this_);
125struct navigation *navit_get_navigation(struct navit *this_);
126struct displaylist *navit_get_displaylist(struct navit *this_);
127void navit_layout_switch(struct navit *n);
128int navit_set_vehicle_by_name(struct navit *n, const char *name);
129int navit_set_vehicleprofile_name(struct navit *this_, char *name);
130int navit_set_layout_by_name(struct navit *n, const char *name);
131void navit_disable_suspend(void);
132int navit_block(struct navit *this_, int block);
133int navit_get_blocked(struct navit *this_);
134void navit_destroy(struct navit *this_);
135void navit_command_add_table(struct navit *this_, struct command_table *commands, int count);
136struct navit *navit_ref(struct navit *this_);
137void navit_unref(struct navit *this_);
138/* end of prototypes */
139#ifdef __cplusplus
140}
141#endif
142
143#endif
attr_type
Definition attr_type_def.h:11
static struct command_table commands[]
Definition binding_dbus.c:2211
static char * description(struct search_param *search, GtkTreeIter *iter)
Definition destination.c:56
struct tcoord center
Definition garmin_img.c:2
char type[3]
Definition garmin_img.c:2
void navit_update_current_layout(struct navit *this_, struct layout *layout)
Set the current layout.
Definition navit.c:3045
void navit_disable_suspend(void)
Definition navit.c:3762
void navit_set_timeout(struct navit *this_)
Definition navit.c:578
struct transformation * navit_get_trans(struct navit *this_)
Definition navit.c:3496
struct gui * main_loop_gui
Definition navit.c:188
int navit_add_attr(struct navit *this_, struct attr *attr)
Definition navit.c:3109
void navit_ignore_graphics_events(struct navit *this_, int ignore)
Definition navit.c:539
void navit_textfile_debug_log(struct navit *this_, const char *fmt,...)
Definition navit.c:1869
void navit_set_center(struct navit *this_, struct pcoord *center, int set_timeout)
Definition navit.c:2321
int navit_handle_button(struct navit *this_, int pressed, int button, struct point *p, struct callback *popup_callback)
Definition navit.c:585
void navit_zoom_out_cursor(struct navit *this_, int factor)
Definition navit.c:847
int navit_get_height(struct navit *this_)
Definition navit.c:507
int navit_ignore_button(struct navit *this_)
Sets a flag indicating that the current button event should be ignored by subsequent handlers.
Definition navit.c:532
void navit_set_center_screen(struct navit *this_, struct point *p, int set_timeout)
Definition navit.c:2539
int navit_init(struct navit *this_)
Definition navit.c:2082
void navit_zoom_to_route(struct navit *this_, int orientation)
Definition navit.c:2273
void navit_command_add_table(struct navit *this_, struct command_table *commands, int count)
Definition navit.c:1455
void navit_set_center_cursor(struct navit *this_, int autozoom, int keep_orientation)
Recalculates the map view so that the vehicle cursor is visible.
Definition navit.c:2474
void navit_add_mapset(struct navit *this_, struct mapset *ms)
Definition navit.c:214
struct mapset * navit_get_mapset(struct navit *this_)
Get the current mapset.
Definition navit.c:225
int navit_populate_search_results_map(struct navit *navit, GList *search_results, struct coord_rect *r)
Populate a map containing one or more search result points.
Definition navit.c:303
struct tracking * navit_get_tracking(struct navit *this_)
Definition navit.c:359
void navit_attr_iter_destroy(struct attr_iter *iter)
Definition navit.c:3192
void navit_destroy(struct navit *this_)
Definition navit.c:3808
struct navigation * navit_get_navigation(struct navit *this_)
Definition navit.c:3504
GList * navit_get_vehicleprofiles(struct navit *this_)
Definition navit.c:1569
void navit_textfile_debug_log_at(struct navit *this_, struct pcoord *pc, const char *fmt,...)
Definition navit.c:1884
int navit_get_destination_count(struct navit *this_)
Get the destinations count for the route.
Definition navit.c:1731
struct map * navit_get_search_results_map(struct navit *this_)
Get the search result map (and create it if it does not exist)
Definition navit.c:241
void navit_handle_resize(struct navit *this_, int w, int h)
Definition navit.c:456
struct graphics * navit_get_graphics(struct navit *this_)
Definition navit.c:1561
char * navit_get_user_data_directory(int create)
Get the user data directory.
Definition navit.c:373
struct gui * navit_get_gui(struct navit *this_)
Definition navit.c:3492
int navit_set_vehicleprofile_name(struct navit *this_, char *name)
Definition navit.c:3411
int navit_get_ready(struct navit *this_)
Definition navit.c:402
void navit_zoom_to_rect(struct navit *this_, struct coord_rect *r)
Definition navit.c:2246
void navit_zoom_in(struct navit *this_, int factor, struct point *p)
Definition navit.c:812
void navit_zoom_out(struct navit *this_, int factor, struct point *p)
Definition navit.c:830
int navit_check_route(struct navit *this_)
Checks if a route is calculated.
Definition navit.c:1771
char * navit_get_destination_description(struct navit *this_, int n)
Definition navit.c:1737
int navit_set_vehicle_by_name(struct navit *n, const char *name)
Definition navit.c:3708
void navit_remove_waypoint(struct navit *this_)
Definition navit.c:1753
struct displaylist * navit_get_displaylist(struct navit *this_)
Definition navit.c:3508
void navit_drag_map(struct navit *this_, struct point *origin, struct point *destination)
Drags (moves) the map.
Definition navit.c:2502
void navit_set_destinations(struct navit *this_, struct pcoord *c, int count, const char *description, int async)
Definition navit.c:1683
struct message * navit_get_messages(struct navit *this_)
Definition navit.c:1542
void navit_remove_nth_waypoint(struct navit *this_, int n)
Definition navit.c:1743
struct route * navit_get_route(struct navit *this_)
Definition navit.c:3500
void navit_remove_callback(struct navit *this_, struct callback *cb)
Definition navit.c:3200
struct attr_iter * navit_attr_iter_new(void *unused)
Definition navit.c:3188
void navit_add_message(struct navit *this_, const char *message)
Definition navit.c:1538
void navit_set_destination(struct navit *this_, struct pcoord *c, const char *description, int async)
Definition navit.c:1606
void navit_window_roadbook_new(struct navit *this_)
Definition navit.c:2070
int navit_get_blocked(struct navit *this_)
Returns whether redraw operations are currently blocked.
Definition navit.c:3804
struct navit * navit_new(struct attr *parent, struct attr **attrs)
Definition navit.c:1459
struct layout * navit_get_layout_by_name(struct navit *this_, const char *layout_name)
Select the default layout by name.
Definition navit.c:3018
void navit_add_callback(struct navit *this_, struct callback *cb)
Definition navit.c:3196
void navit_speak(struct navit *this_)
Definition navit.c:1938
void navit_zoom_in_cursor(struct navit *this_, int factor)
Definition navit.c:838
void navit_handle_motion(struct navit *this_, struct point *p)
Definition navit.c:691
void navit_draw_async(struct navit *this_, int async)
Definition navit.c:386
int navit_set_attr(struct navit *this_, struct attr *attr)
Definition navit.c:2790
int navit_get_destinations(struct navit *this_, struct pcoord *pc, int count)
Retrieves destinations from the route.
Definition navit.c:1719
int navit_get_width(struct navit *this_)
Definition navit.c:503
int navit_set_layout_by_name(struct navit *n, const char *name)
Definition navit.c:3730
int navit_get_attr(struct navit *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition navit.c:2794
struct vehicleprofile * navit_get_vehicleprofile(struct navit *this_)
Definition navit.c:1565
void navit_draw(struct navit *this_)
Definition navit.c:397
void navit_add_destination_description(struct navit *this_, struct pcoord *c, const char *description)
Definition navit.c:1663
void navit_draw_displaylist(struct navit *this_)
Definition navit.c:406
void navit_set_center_cursor_draw(struct navit *this_)
Recenters the map so that the vehicle cursor is visible.
Definition navit.c:2520
int navit_block(struct navit *this_, int block)
Blocks or unblocks redraw operations.
Definition navit.c:3785
void navit_say(struct navit *this_, const char *text)
Definition navit.c:1898
void navit_layout_switch(struct navit *n)
Definition navit.c:3512
void navit_set_position(struct navit *this_, struct pcoord *c)
Definition navit.c:3393
void navit_window_roadbook_destroy(struct navit *this_)
Definition navit.c:2063
int navit_remove_attr(struct navit *this_, struct attr *attr)
Definition navit.c:3172
struct map * read_former_destinations_from_file(void)
Definition navit.c:1799
unsigned char p[5]
Definition mg.h:2
void navit_unref(struct navit *this_)
struct navit * navit_ref(struct navit *this_)
int navit_speech_estimate(struct navit *this_, char *str)
char * navit_get_coord_description(struct navit *this_, struct pcoord *c)
int orientation
Definition pedestrian.c:71
struct navit struct traffic_methods struct attr ** attrs
Definition plugin_def.h:36
static struct pcoord c
Definition popup.c:375
char name[0]
Definition street.c:3
Definition config_.c:47
void * iter
Definition config_.c:48
Definition attr.h:138
Definition mg.h:33
Definition callback.c:27
Definition command.h:29
Definition coord.h:57
Definition graphics.c:123
graphics object A graphics object serves as the target for drawing operations. It encapsulates variou...
Definition graphics.c:78
Definition gui.c:30
Represents an object on a map.
Definition item.h:122
Definition layout.h:125
Definition map.c:55
Definition mapset.c:39
Definition messages.h:25
Definition navigation.c:161
Definition navit.c:111
Definition gpx2navit_txt.h:50
Definition coord.h:51
Definition point.h:23
A complete route.
Definition route.c:206
Definition track.c:84
The parameters needed to transform a map for display.
Definition transform.c:64
Definition vehicleprofile.h:27