navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
navit.h
Go to the documentation of this file.
1 
20 #ifndef NAVIT_NAVIT_H
21 #define NAVIT_NAVIT_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 extern struct gui *main_loop_gui;
27 // defined in glib.h.
28 #ifndef __G_LIST_H__
29 struct _GList;
30 typedef struct _GList GList;
31 #endif
32 
33 /* prototypes */
34 enum attr_type;
35 struct attr;
36 struct attr_iter;
37 struct callback;
38 struct coord_rect;
39 struct displaylist;
40 struct graphics;
41 struct gui;
42 struct mapset;
43 struct message;
44 struct navigation;
45 struct navit;
46 struct pcoord;
47 struct point;
48 struct route;
49 struct tracking;
50 struct transformation;
51 struct vehicleprofile;
52 struct command_table;
53 struct item;
54 void navit_add_mapset(struct navit *this_, struct mapset *ms);
55 struct mapset *navit_get_mapset(struct navit *this_);
56 struct tracking *navit_get_tracking(struct navit *this_);
57 char *navit_get_user_data_directory(int create);
58 void navit_draw_async(struct navit *this_, int async);
59 void navit_draw(struct navit *this_);
60 int navit_get_ready(struct navit *this_);
61 void navit_draw_displaylist(struct navit *this_);
62 void navit_handle_resize(struct navit *this_, int w, int h);
63 int navit_get_width(struct navit *this_);
64 int navit_get_height(struct navit *this_);
65 int navit_ignore_button(struct navit *this_);
66 void navit_ignore_graphics_events(struct navit *this_, int ignore);
67 void navit_set_timeout(struct navit *this_);
68 int navit_handle_button(struct navit *this_, int pressed, int button, struct point *p, struct callback *popup_callback);
69 void navit_handle_motion(struct navit *this_, struct point *p);
70 void navit_zoom_in(struct navit *this_, int factor, struct point *p);
71 void navit_zoom_out(struct navit *this_, int factor, struct point *p);
72 void navit_zoom_in_cursor(struct navit *this_, int factor);
73 void navit_zoom_out_cursor(struct navit *this_, int factor);
74 struct navit *navit_new(struct attr *parent, struct attr **attrs);
75 void navit_add_message(struct navit *this_, const char *message);
76 struct message *navit_get_messages(struct navit *this_);
77 struct graphics *navit_get_graphics(struct navit *this_);
78 struct vehicleprofile *navit_get_vehicleprofile(struct navit *this_);
79 GList *navit_get_vehicleprofiles(struct navit *this_);
80 void navit_set_destination(struct navit *this_, struct pcoord *c, const char *description, int async);
81 void navit_set_destinations(struct navit *this_, struct pcoord *c, int count, const char *description, int async);
82 void navit_add_destination_description(struct navit *this_, struct pcoord *c, const char *description);
83 int navit_get_destinations(struct navit *this_, struct pcoord *pc, int count);
84 int navit_get_destination_count(struct navit *this_);
85 char* navit_get_destination_description(struct navit *this_, int n);
86 void navit_remove_nth_waypoint(struct navit *this_, int n);
87 void navit_remove_waypoint(struct navit *this_);
88 char* navit_get_coord_description(struct navit *this_, struct pcoord *c);
89 int navit_check_route(struct navit *this_);
91 void navit_textfile_debug_log(struct navit *this_, const char *fmt, ...);
92 void navit_textfile_debug_log_at(struct navit *this_, struct pcoord *pc, const char *fmt, ...);
93 int navit_speech_estimate(struct navit *this_, char *str);
94 void navit_say(struct navit *this_, const char *text);
95 void navit_speak(struct navit *this_);
96 void navit_window_roadbook_destroy(struct navit *this_);
97 void navit_window_roadbook_new(struct navit *this_);
98 void navit_init(struct navit *this_);
99 void navit_zoom_to_rect(struct navit *this_, struct coord_rect *r);
100 void navit_zoom_to_route(struct navit *this_, int orientation);
101 void navit_set_center(struct navit *this_, struct pcoord *center, int set_timeout);
102 void navit_set_center_cursor(struct navit *this_, int autozoom, int keep_orientation);
103 void navit_set_center_screen(struct navit *this_, struct point *p, int set_timeout);
104 int navit_set_attr(struct navit *this_, struct attr *attr);
105 int navit_get_attr(struct navit *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
106 int navit_add_attr(struct navit *this_, struct attr *attr);
107 int navit_remove_attr(struct navit *this_, struct attr *attr);
108 struct attr_iter *navit_attr_iter_new(void);
110 void navit_add_callback(struct navit *this_, struct callback *cb);
111 void navit_remove_callback(struct navit *this_, struct callback *cb);
112 void navit_set_position(struct navit *this_, struct pcoord *c);
113 struct gui *navit_get_gui(struct navit *this_);
114 struct transformation *navit_get_trans(struct navit *this_);
115 struct route *navit_get_route(struct navit *this_);
116 struct navigation *navit_get_navigation(struct navit *this_);
117 struct displaylist *navit_get_displaylist(struct navit *this_);
118 void navit_layout_switch(struct navit *n);
119 int navit_set_vehicle_by_name(struct navit *n, const char *name);
120 int navit_set_vehicleprofile_name(struct navit *this_, char *name);
121 int navit_set_layout_by_name(struct navit *n, const char *name);
122 void navit_disable_suspend(void);
123 int navit_block(struct navit *this_, int block);
124 int navit_get_blocked(struct navit *this_);
125 void navit_destroy(struct navit *this_);
126 void navit_command_add_table(struct navit*this_, struct command_table *commands, int count);
127 struct navit * navit_ref(struct navit *this_);
128 void navit_unref(struct navit *this_);
129 /* end of prototypes */
130 #ifdef __cplusplus
131 }
132 #endif
133 
134 #endif
135 
int orientation
Definition: pedestrian.c:61
Definition: navigation.c:161
attr_type
Definition: attr.h:34
void navit_handle_motion(struct navit *this_, struct point *p)
Definition: navit.c:577
void navit_command_add_table(struct navit *this_, struct command_table *commands, int count)
Definition: navit.c:1410
Definition: messages.h:25
unsigned char p[5]
Definition: mg.h:48
void navit_set_center_screen(struct navit *this_, struct point *p, int set_timeout)
Definition: navit.c:2500
tuple iter
Definition: eval.py:8
Definition: gpx2navit_txt.h:51
static char * description(struct search_param *search, GtkTreeIter *iter)
Definition: destination.c:71
int navit_get_attr(struct navit *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition: navit.c:2736
void navit_add_destination_description(struct navit *this_, struct pcoord *c, const char *description)
Definition: navit.c:1633
struct route * navit_get_route(struct navit *this_)
Definition: navit.c:3393
int navit_get_width(struct navit *this_)
Definition: navit.c:368
struct graphics * navit_get_graphics(struct navit *this_)
Definition: navit.c:1524
Definition: item.h:99
void navit_attr_iter_destroy(struct attr_iter *iter)
Definition: navit.c:3062
void navit_draw_displaylist(struct navit *this_)
Definition: navit.c:285
A mapset.
Definition: mapset.c:44
int navit_add_attr(struct navit *this_, struct attr *attr)
Definition: navit.c:2974
void navit_zoom_out(struct navit *this_, int factor, struct point *p)
Definition: navit.c:727
Definition: gui.c:30
void navit_speak(struct navit *this_)
Definition: navit.c:1908
struct gui * navit_get_gui(struct navit *this_)
Definition: navit.c:3381
int navit_get_destinations(struct navit *this_, struct pcoord *pc, int count)
Definition: navit.c:1676
Definition: vehicleprofile.h:33
void navit_add_mapset(struct navit *this_, struct mapset *ms)
Definition: navit.c:210
int navit_get_height(struct navit *this_)
Definition: navit.c:375
Definition: track.c:85
int navit_set_layout_by_name(struct navit *n, const char *name)
Definition: navit.c:3585
int navit_set_vehicleprofile_name(struct navit *this_, char *name)
Definition: navit.c:3294
void navit_ignore_graphics_events(struct navit *this_, int ignore)
Definition: navit.c:414
struct tracking * navit_get_tracking(struct navit *this_)
Definition: navit.c:227
void navit_set_timeout(struct navit *this_)
Definition: navit.c:458
struct navit * navit_new(struct attr *parent, struct attr **attrs)
Definition: navit.c:1416
void navit_set_position(struct navit *this_, struct pcoord *c)
Definition: navit.c:3272
struct mapset * navit_get_mapset(struct navit *this_)
Definition: navit.c:216
void navit_zoom_out_cursor(struct navit *this_, int factor)
Definition: navit.c:748
GList * navit_get_vehicleprofiles(struct navit *this_)
Definition: navit.c:1536
void navit_disable_suspend(void)
Definition: navit.c:3619
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:2454
A complete route.
Definition: route.c:248
int navit_check_route(struct navit *this_)
Checks if a route is calculated.
Definition: navit.c:1733
void navit_say(struct navit *this_, const char *text)
Definition: navit.c:1865
void navit_zoom_in(struct navit *this_, int factor, struct point *p)
Definition: navit.c:707
void navit_init(struct navit *this_)
Definition: navit.c:2074
struct tcoord center
Definition: garmin_img.c:523
void navit_set_destination(struct navit *this_, struct pcoord *c, const char *description, int async)
Definition: navit.c:1578
graphics object A graphics object serves as the target for drawing operations. It encapsulates variou...
Definition: graphics.c:70
void navit_window_roadbook_new(struct navit *this_)
Definition: navit.c:2061
Definition: config_.c:48
int navit_get_destination_count(struct navit *this_)
Definition: navit.c:1685
int navit_handle_button(struct navit *this_, int pressed, int button, struct point *p, struct callback *popup_callback)
Definition: navit.c:467
void navit_handle_resize(struct navit *this_, int w, int h)
Definition: navit.c:340
void navit_draw_async(struct navit *this_, int async)
Definition: navit.c:258
void navit_window_roadbook_destroy(struct navit *this_)
Definition: navit.c:2052
struct map * read_former_destinations_from_file(void)
Definition: navit.c:1762
Definition: attr.h:156
void navit_zoom_in_cursor(struct navit *this_, int factor)
Definition: navit.c:737
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:405
struct navigation * navit_get_navigation(struct navit *this_)
Definition: navit.c:3399
int navit_block(struct navit *this_, int block)
Blocks or unblocks redraw operations.
Definition: navit.c:3643
struct gui * main_loop_gui
Definition: navit.c:183
int navit_set_vehicle_by_name(struct navit *n, const char *name)
Definition: navit.c:3561
Definition: mg.h:33
void navit_add_message(struct navit *this_, const char *message)
Definition: navit.c:1495
Definition: callback.c:26
void navit_remove_callback(struct navit *this_, struct callback *cb)
Definition: navit.c:3074
void navit_remove_nth_waypoint(struct navit *this_, int n)
Definition: navit.c:1701
void navit_set_destinations(struct navit *this_, struct pcoord *c, int count, const char *description, int async)
Definition: navit.c:1654
void navit_destroy(struct navit *this_)
Definition: navit.c:3669
struct transformation * navit_get_trans(struct navit *this_)
Definition: navit.c:3387
Definition: point.h:23
struct attr_iter * navit_attr_iter_new(void)
Definition: navit.c:3056
Holds information about a map.
Definition: map.c:60
void navit_textfile_debug_log_at(struct navit *this_, struct pcoord *pc, const char *fmt,...)
Definition: navit.c:1849
int navit_set_attr(struct navit *this_, struct attr *attr)
Definition: navit.c:2730
struct vehicleprofile * navit_get_vehicleprofile(struct navit *this_)
Definition: navit.c:1530
void navit_remove_waypoint(struct navit *this_)
Definition: navit.c:1713
int navit_get_blocked(struct navit *this_)
Returns whether redraw operations are currently blocked.
Definition: navit.c:3663
void navit_set_center(struct navit *this_, struct pcoord *center, int set_timeout)
Definition: navit.c:2293
Definition: graphics.c:116
char * navit_get_user_data_directory(int create)
Get the user data directory.
Definition: navit.c:243
struct message * navit_get_messages(struct navit *this_)
Definition: navit.c:1501
void navit_layout_switch(struct navit *n)
Definition: navit.c:3412
Definition: coord.h:46
char type[3]
Definition: garmin_img.c:130
void navit_draw(struct navit *this_)
Definition: navit.c:270
char name[0]
Definition: street.c:559
Definition: navit.c:111
Definition: coord.h:40
Definition: command.h:27
static struct command_table commands[]
Definition: binding_dbus.c:2182
struct displaylist * navit_get_displaylist(struct navit *this_)
Definition: navit.c:3405
void navit_add_callback(struct navit *this_, struct callback *cb)
Definition: navit.c:3068
int navit_remove_attr(struct navit *this_, struct attr *attr)
Definition: navit.c:3038
void navit_zoom_to_route(struct navit *this_, int orientation)
Definition: navit.c:2241
The parameters needed to transform a map for display.
Definition: transform.c:64
void navit_textfile_debug_log(struct navit *this_, const char *fmt,...)
Definition: navit.c:1833
void navit_zoom_to_rect(struct navit *this_, struct coord_rect *r)
Definition: navit.c:2210
int navit_get_ready(struct navit *this_)
Definition: navit.c:277
char * navit_get_destination_description(struct navit *this_, int n)
Definition: navit.c:1693