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 struct object_func *func; int refcount; struct attr **attrs;
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28extern struct gui *main_loop_gui;
29
30#include <glib.h>
31
32/* prototypes */
33enum attr_type;
34struct attr;
35struct attr_iter;
36struct callback;
37struct coord_rect;
38struct displaylist;
39struct graphics;
40struct gui;
41struct layout;
42struct mapset;
43struct message;
44struct navigation;
45struct navit;
46struct pcoord;
47struct point;
48struct route;
49struct tracking;
50struct transformation;
51struct vehicleprofile;
52struct command_table;
53struct item;
54void navit_add_mapset(struct navit *this_, struct mapset *ms);
55struct mapset *navit_get_mapset(struct navit *this_);
56struct map *navit_get_search_results_map(struct navit *this_);
57int navit_populate_search_results_map(struct navit *navit, GList *search_results, struct coord_rect *r);
58struct tracking *navit_get_tracking(struct navit *this_);
59char *navit_get_user_data_directory(int create);
60void navit_draw_async(struct navit *this_, int async);
61void navit_draw(struct navit *this_);
62int navit_get_ready(struct navit *this_);
63void navit_draw_displaylist(struct navit *this_);
64void navit_handle_resize(struct navit *this_, int w, int h);
65int navit_get_width(struct navit *this_);
66int navit_get_height(struct navit *this_);
67int navit_ignore_button(struct navit *this_);
68void navit_ignore_graphics_events(struct navit *this_, int ignore);
69void navit_set_timeout(struct navit *this_);
70int navit_handle_button(struct navit *this_, int pressed, int button, struct point *p, struct callback *popup_callback);
71void navit_handle_motion(struct navit *this_, struct point *p);
72void navit_zoom_in(struct navit *this_, int factor, struct point *p);
73void navit_zoom_out(struct navit *this_, int factor, struct point *p);
74void navit_zoom_in_cursor(struct navit *this_, int factor);
75void navit_zoom_out_cursor(struct navit *this_, int factor);
76struct navit *navit_new(struct attr *parent, struct attr **attrs);
77void navit_add_message(struct navit *this_, const char *message);
78struct message *navit_get_messages(struct navit *this_);
79struct graphics *navit_get_graphics(struct navit *this_);
80struct vehicleprofile *navit_get_vehicleprofile(struct navit *this_);
81GList *navit_get_vehicleprofiles(struct navit *this_);
82void navit_set_destination(struct navit *this_, struct pcoord *c, const char *description, int async);
83void navit_set_destinations(struct navit *this_, struct pcoord *c, int count, const char *description, int async);
84void navit_add_destination_description(struct navit *this_, struct pcoord *c, const char *description);
85int navit_get_destinations(struct navit *this_, struct pcoord *pc, int count);
86int navit_get_destination_count(struct navit *this_);
87char* navit_get_destination_description(struct navit *this_, int n);
88void navit_remove_nth_waypoint(struct navit *this_, int n);
89void navit_remove_waypoint(struct navit *this_);
90char* navit_get_coord_description(struct navit *this_, struct pcoord *c);
91int navit_check_route(struct navit *this_);
93void navit_textfile_debug_log(struct navit *this_, const char *fmt, ...);
94void navit_textfile_debug_log_at(struct navit *this_, struct pcoord *pc, const char *fmt, ...);
95int navit_speech_estimate(struct navit *this_, char *str);
96void navit_say(struct navit *this_, const char *text);
97void navit_speak(struct navit *this_);
98void navit_window_roadbook_destroy(struct navit *this_);
99void navit_window_roadbook_new(struct navit *this_);
100int navit_init(struct navit *this_);
101void navit_zoom_to_rect(struct navit *this_, struct coord_rect *r);
102void navit_zoom_to_route(struct navit *this_, int orientation);
103void navit_set_center(struct navit *this_, struct pcoord *center, int set_timeout);
104void navit_set_center_cursor(struct navit *this_, int autozoom, int keep_orientation);
105void navit_set_center_screen(struct navit *this_, struct point *p, int set_timeout);
106void navit_drag_map(struct navit *this_, struct point *origin, struct point *destination);
107void navit_set_center_cursor_draw(struct navit *this_);
108int navit_set_attr(struct navit *this_, struct attr *attr);
109int navit_get_attr(struct navit *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
110struct layout *navit_get_layout_by_name(struct navit *this_, const char *layout_name);
111void navit_update_current_layout(struct navit *this_, struct layout *layout);
112int navit_add_attr(struct navit *this_, struct attr *attr);
113int navit_remove_attr(struct navit *this_, struct attr *attr);
114struct attr_iter *navit_attr_iter_new(void * unused);
116void navit_add_callback(struct navit *this_, struct callback *cb);
117void navit_remove_callback(struct navit *this_, struct callback *cb);
118void navit_set_position(struct navit *this_, struct pcoord *c);
119struct gui *navit_get_gui(struct navit *this_);
120struct transformation *navit_get_trans(struct navit *this_);
121struct route *navit_get_route(struct navit *this_);
122struct navigation *navit_get_navigation(struct navit *this_);
123struct displaylist *navit_get_displaylist(struct navit *this_);
124void navit_layout_switch(struct navit *n);
125int navit_set_vehicle_by_name(struct navit *n, const char *name);
126int navit_set_vehicleprofile_name(struct navit *this_, char *name);
127int navit_set_layout_by_name(struct navit *n, const char *name);
128void navit_disable_suspend(void);
129int navit_block(struct navit *this_, int block);
130int navit_get_blocked(struct navit *this_);
131void navit_destroy(struct navit *this_);
132void navit_command_add_table(struct navit*this_, struct command_table *commands, int count);
133struct navit * navit_ref(struct navit *this_);
134void navit_unref(struct navit *this_);
135/* end of prototypes */
136#ifdef __cplusplus
137}
138#endif
139
140#endif
141
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:3068
void navit_disable_suspend(void)
Definition navit.c:3792
void navit_set_timeout(struct navit *this_)
Definition navit.c:583
struct transformation * navit_get_trans(struct navit *this_)
Definition navit.c:3524
struct gui * main_loop_gui
Definition navit.c:188
int navit_add_attr(struct navit *this_, struct attr *attr)
Definition navit.c:3131
void navit_ignore_graphics_events(struct navit *this_, int ignore)
Definition navit.c:545
void navit_textfile_debug_log(struct navit *this_, const char *fmt,...)
Definition navit.c:1891
void navit_set_center(struct navit *this_, struct pcoord *center, int set_timeout)
Definition navit.c:2346
int navit_handle_button(struct navit *this_, int pressed, int button, struct point *p, struct callback *popup_callback)
Definition navit.c:590
void navit_zoom_out_cursor(struct navit *this_, int factor)
Definition navit.c:850
int navit_get_height(struct navit *this_)
Definition navit.c:512
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:538
void navit_set_center_screen(struct navit *this_, struct point *p, int set_timeout)
Definition navit.c:2564
int navit_init(struct navit *this_)
Definition navit.c:2107
void navit_zoom_to_route(struct navit *this_, int orientation)
Definition navit.c:2297
void navit_command_add_table(struct navit *this_, struct command_table *commands, int count)
Definition navit.c:1472
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:2499
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:226
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:304
struct tracking * navit_get_tracking(struct navit *this_)
Definition navit.c:361
void navit_attr_iter_destroy(struct attr_iter *iter)
Definition navit.c:3215
void navit_destroy(struct navit *this_)
Definition navit.c:3838
struct navigation * navit_get_navigation(struct navit *this_)
Definition navit.c:3534
GList * navit_get_vehicleprofiles(struct navit *this_)
Definition navit.c:1590
void navit_textfile_debug_log_at(struct navit *this_, struct pcoord *pc, const char *fmt,...)
Definition navit.c:1906
int navit_get_destination_count(struct navit *this_)
Get the destinations count for the route.
Definition navit.c:1752
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:242
void navit_handle_resize(struct navit *this_, int w, int h)
Definition navit.c:460
struct graphics * navit_get_graphics(struct navit *this_)
Definition navit.c:1581
char * navit_get_user_data_directory(int create)
Get the user data directory.
Definition navit.c:375
struct gui * navit_get_gui(struct navit *this_)
Definition navit.c:3519
int navit_set_vehicleprofile_name(struct navit *this_, char *name)
Definition navit.c:3434
int navit_get_ready(struct navit *this_)
Definition navit.c:405
void navit_zoom_to_rect(struct navit *this_, struct coord_rect *r)
Definition navit.c:2268
void navit_zoom_in(struct navit *this_, int factor, struct point *p)
Definition navit.c:815
void navit_zoom_out(struct navit *this_, int factor, struct point *p)
Definition navit.c:833
int navit_check_route(struct navit *this_)
Checks if a route is calculated.
Definition navit.c:1792
char * navit_get_destination_description(struct navit *this_, int n)
Definition navit.c:1758
int navit_set_vehicle_by_name(struct navit *n, const char *name)
Definition navit.c:3738
void navit_remove_waypoint(struct navit *this_)
Definition navit.c:1774
struct displaylist * navit_get_displaylist(struct navit *this_)
Definition navit.c:3539
void navit_drag_map(struct navit *this_, struct point *origin, struct point *destination)
Drags (moves) the map.
Definition navit.c:2527
void navit_set_destinations(struct navit *this_, struct pcoord *c, int count, const char *description, int async)
Definition navit.c:1703
struct message * navit_get_messages(struct navit *this_)
Definition navit.c:1561
void navit_remove_nth_waypoint(struct navit *this_, int n)
Definition navit.c:1764
struct route * navit_get_route(struct navit *this_)
Definition navit.c:3529
void navit_remove_callback(struct navit *this_, struct callback *cb)
Definition navit.c:3223
struct attr_iter * navit_attr_iter_new(void *unused)
Definition navit.c:3211
void navit_add_message(struct navit *this_, const char *message)
Definition navit.c:1556
void navit_set_destination(struct navit *this_, struct pcoord *c, const char *description, int async)
Definition navit.c:1627
void navit_window_roadbook_new(struct navit *this_)
Definition navit.c:2095
int navit_get_blocked(struct navit *this_)
Returns whether redraw operations are currently blocked.
Definition navit.c:3834
struct navit * navit_new(struct attr *parent, struct attr **attrs)
Definition navit.c:1477
struct layout * navit_get_layout_by_name(struct navit *this_, const char *layout_name)
Select the default layout by name.
Definition navit.c:3043
void navit_add_callback(struct navit *this_, struct callback *cb)
Definition navit.c:3219
void navit_speak(struct navit *this_)
Definition navit.c:1960
void navit_zoom_in_cursor(struct navit *this_, int factor)
Definition navit.c:841
void navit_handle_motion(struct navit *this_, struct point *p)
Definition navit.c:695
void navit_draw_async(struct navit *this_, int async)
Definition navit.c:389
int navit_set_attr(struct navit *this_, struct attr *attr)
Definition navit.c:2815
int navit_get_destinations(struct navit *this_, struct pcoord *pc, int count)
Retrieves destinations from the route.
Definition navit.c:1739
int navit_get_width(struct navit *this_)
Definition navit.c:507
int navit_set_layout_by_name(struct navit *n, const char *name)
Definition navit.c:3760
int navit_get_attr(struct navit *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition navit.c:2819
struct vehicleprofile * navit_get_vehicleprofile(struct navit *this_)
Definition navit.c:1586
void navit_draw(struct navit *this_)
Definition navit.c:400
void navit_add_destination_description(struct navit *this_, struct pcoord *c, const char *description)
Definition navit.c:1683
void navit_draw_displaylist(struct navit *this_)
Definition navit.c:411
void navit_set_center_cursor_draw(struct navit *this_)
Recenters the map so that the vehicle cursor is visible.
Definition navit.c:2545
int navit_block(struct navit *this_, int block)
Blocks or unblocks redraw operations.
Definition navit.c:3815
void navit_say(struct navit *this_, const char *text)
Definition navit.c:1920
void navit_layout_switch(struct navit *n)
Definition navit.c:3543
void navit_set_position(struct navit *this_, struct pcoord *c)
Definition navit.c:3416
void navit_window_roadbook_destroy(struct navit *this_)
Definition navit.c:2088
int navit_remove_attr(struct navit *this_, struct attr *attr)
Definition navit.c:3194
struct map * read_former_destinations_from_file(void)
Definition navit.c:1820
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
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:136
Definition mg.h:33
Definition callback.c:27
Definition command.h:27
Definition coord.h:58
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:124
Definition layout.h:114
Definition map.c:55
Definition mapset.c:39
Definition messages.h:25
Definition navigation.c:161
Definition navit.c:112
Definition gpx2navit_txt.h:51
Definition coord.h:52
Definition point.h:23
A complete route.
Definition route.c:202
Definition track.c:84
The parameters needed to transform a map for display.
Definition transform.c:64
Definition vehicleprofile.h:33