Navit SVN

/work/compile/navit/src/navit/navit.h

00001 
00020 #ifndef NAVIT_NAVIT_H
00021 #define NAVIT_NAVIT_H
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 extern struct gui *main_loop_gui;
00027 // defined in glib.h.
00028 #ifndef __G_LIST_H__
00029 struct _GList;
00030 typedef struct _GList GList;
00031 #endif
00032 
00033 /* prototypes */
00034 enum attr_type;
00035 struct attr;
00036 struct attr_iter;
00037 struct callback;
00038 struct coord_rect;
00039 struct displaylist;
00040 struct graphics;
00041 struct gui;
00042 struct mapset;
00043 struct message;
00044 struct navigation;
00045 struct navit;
00046 struct pcoord;
00047 struct point;
00048 struct route;
00049 struct tracking;
00050 struct transformation;
00051 struct vehicleprofile;
00052 struct command_table;
00053 struct item;
00054 void navit_add_mapset(struct navit *this_, struct mapset *ms);
00055 struct mapset *navit_get_mapset(struct navit *this_);
00056 struct tracking *navit_get_tracking(struct navit *this_);
00057 char *navit_get_user_data_directory(int create);
00058 void navit_draw_async(struct navit *this_, int async);
00059 void navit_draw(struct navit *this_);
00060 int navit_get_ready(struct navit *this_);
00061 void navit_draw_displaylist(struct navit *this_);
00062 void navit_handle_resize(struct navit *this_, int w, int h);
00063 int navit_get_width(struct navit *this_);
00064 int navit_get_height(struct navit *this_);
00065 int navit_ignore_button(struct navit *this_);
00066 void navit_ignore_graphics_events(struct navit *this_, int ignore);
00067 void navit_set_timeout(struct navit *this_);
00068 int navit_handle_button(struct navit *this_, int pressed, int button, struct point *p, struct callback *popup_callback);
00069 void navit_handle_motion(struct navit *this_, struct point *p);
00070 void navit_zoom_in(struct navit *this_, int factor, struct point *p);
00071 void navit_zoom_out(struct navit *this_, int factor, struct point *p);
00072 void navit_zoom_in_cursor(struct navit *this_, int factor);
00073 void navit_zoom_out_cursor(struct navit *this_, int factor);
00074 struct navit *navit_new(struct attr *parent, struct attr **attrs);
00075 void navit_add_message(struct navit *this_, char *message);
00076 struct message *navit_get_messages(struct navit *this_);
00077 struct graphics *navit_get_graphics(struct navit *this_);
00078 struct vehicleprofile *navit_get_vehicleprofile(struct navit *this_);
00079 GList *navit_get_vehicleprofiles(struct navit *this_);
00080 void navit_set_destination(struct navit *this_, struct pcoord *c, const char *description, int async);
00081 void navit_set_destinations(struct navit *this_, struct pcoord *c, int count, const char *description, int async);
00082 int navit_get_destinations(struct navit *this_, struct pcoord *pc, int count);
00083 int navit_get_destination_count(struct navit *this_);
00084 char* navit_get_destination_description(struct navit *this_, int n);
00085 void navit_remove_nth_waypoint(struct navit *this_, int n);
00086 void navit_remove_waypoint(struct navit *this_);
00087 char* navit_get_coord_description(struct navit *this_, struct pcoord *c);
00088 int navit_check_route(struct navit *this_);
00089 struct map* read_former_destinations_from_file(void);
00090 void navit_textfile_debug_log(struct navit *this_, const char *fmt, ...);
00091 void navit_textfile_debug_log_at(struct navit *this_, struct pcoord *pc, const char *fmt, ...);
00092 int navit_speech_estimate(struct navit *this_, char *str);
00093 void navit_say(struct navit *this_, char *text);
00094 void navit_speak(struct navit *this_);
00095 void navit_window_roadbook_destroy(struct navit *this_);
00096 void navit_window_roadbook_new(struct navit *this_);
00097 void navit_init(struct navit *this_);
00098 void navit_zoom_to_rect(struct navit *this_, struct coord_rect *r);
00099 void navit_zoom_to_route(struct navit *this_, int orientation);
00100 void navit_set_center(struct navit *this_, struct pcoord *center, int set_timeout);
00101 void navit_set_center_cursor(struct navit *this_, int autozoom, int keep_orientation);
00102 void navit_set_center_screen(struct navit *this_, struct point *p, int set_timeout);
00103 int navit_set_attr(struct navit *this_, struct attr *attr);
00104 int navit_get_attr(struct navit *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
00105 int navit_add_attr(struct navit *this_, struct attr *attr);
00106 int navit_remove_attr(struct navit *this_, struct attr *attr);
00107 struct attr_iter *navit_attr_iter_new(void);
00108 void navit_attr_iter_destroy(struct attr_iter *iter);
00109 void navit_add_callback(struct navit *this_, struct callback *cb);
00110 void navit_remove_callback(struct navit *this_, struct callback *cb);
00111 void navit_set_position(struct navit *this_, struct pcoord *c);
00112 struct gui *navit_get_gui(struct navit *this_);
00113 struct transformation *navit_get_trans(struct navit *this_);
00114 struct route *navit_get_route(struct navit *this_);
00115 struct navigation *navit_get_navigation(struct navit *this_);
00116 struct displaylist *navit_get_displaylist(struct navit *this_);
00117 void navit_layout_switch(struct navit *n);
00118 int navit_set_vehicle_by_name(struct navit *n, const char *name);
00119 int navit_set_layout_by_name(struct navit *n, const char *name);
00120 void navit_disable_suspend(void);
00121 int navit_block(struct navit *this_, int block);
00122 void navit_destroy(struct navit *this_);
00123 void navit_command_add_table(struct navit*this_, struct command_table *commands, int count);
00124 struct navit * navit_ref(struct navit *this_);
00125 void navit_unref(struct navit *this_);
00126 /* end of prototypes */
00127 #ifdef __cplusplus
00128 }
00129 #endif
00130 
00131 #endif
00132