Fix:Core:Renamed src to navit for cleanup of includes
[navit-package] / navit / gui.h
1 #ifndef NAVIT_GUI_H
2 #define NAVIT_GUI_H
3
4 struct navit;
5 struct gui_priv;
6 struct menu_methods;
7 struct datawindow_methods;
8 struct callback;
9 struct graphics;
10 struct coord;
11 struct pcoord;
12
13 struct gui_methods {
14         struct menu_priv *(*menubar_new)(struct gui_priv *priv, struct menu_methods *meth);
15         struct menu_priv *(*popup_new)(struct gui_priv *priv, struct menu_methods *meth);
16         int (*set_graphics)(struct gui_priv *priv, struct graphics *gra);
17         int (*run_main_loop)(struct gui_priv *priv);
18         struct datawindow_priv *(*datawindow_new)(struct gui_priv *priv, char *name, struct callback *click, struct callback *close, struct datawindow_methods *meth);
19         int (*add_bookmark)(struct gui_priv *priv, struct pcoord *c, char *description);
20 };
21
22
23 /* prototypes */
24 enum attr_type;
25 struct attr;
26 struct attr_iter;
27 struct callback;
28 struct datawindow;
29 struct graphics;
30 struct gui;
31 struct menu;
32 struct navit;
33 struct pcoord;
34 struct gui *gui_new(struct attr *parent, struct attr **attrs);
35 int gui_get_attr(struct gui *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
36 struct menu *gui_menubar_new(struct gui *gui);
37 struct menu *gui_popup_new(struct gui *gui);
38 struct datawindow *gui_datawindow_new(struct gui *gui, char *name, struct callback *click, struct callback *close);
39 int gui_add_bookmark(struct gui *gui, struct pcoord *c, char *description);
40 int gui_set_graphics(struct gui *this_, struct graphics *gra);
41 int gui_has_main_loop(struct gui *this_);
42 int gui_run_main_loop(struct gui *this_);
43 /* end of prototypes */
44
45 #endif
46