navit  0.5.3-trunk
gui.h
Go to the documentation of this file.
1 
20 #ifndef NAVIT_GUI_H
21 #define NAVIT_GUI_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 struct navit;
27 struct gui_priv;
28 struct menu_methods;
29 struct datawindow_methods;
30 struct callback;
31 struct graphics;
32 struct coord;
33 struct pcoord;
34 
35 struct gui_methods {
36  struct menu_priv *(*menubar_new)(struct gui_priv *priv, struct menu_methods *meth);
37  struct menu_priv *(*popup_new)(struct gui_priv *priv, struct menu_methods *meth);
38  int (*set_graphics)(struct gui_priv *priv, struct graphics *gra);
39  int (*run_main_loop)(struct gui_priv *priv);
40  struct datawindow_priv *(*datawindow_new)(struct gui_priv *priv, const char *name, struct callback *click, struct callback *close, struct datawindow_methods *meth);
41  int (*add_bookmark)(struct gui_priv *priv, struct pcoord *c, char *description);
42  void (*disable_suspend)(struct gui_priv *priv);
43  int (*get_attr)(struct gui_priv *priv, enum attr_type type, struct attr *attr);
44  int (*add_attr)(struct gui_priv *priv, struct attr *attr);
45  int (*set_attr)(struct gui_priv *priv, struct attr *attr);
46 };
47 
48 
49 /* prototypes */
50 enum attr_type;
51 struct attr;
52 struct attr_iter;
53 struct callback;
54 struct datawindow;
55 struct graphics;
56 struct gui;
57 struct menu;
58 struct pcoord;
59 struct gui *gui_new(struct attr *parent, struct attr **attrs);
60 int gui_get_attr(struct gui *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
61 int gui_set_attr(struct gui *this_, struct attr *attr);
62 int gui_add_attr(struct gui *this_, struct attr *attr);
63 struct menu *gui_menubar_new(struct gui *gui);
64 struct menu *gui_popup_new(struct gui *gui);
65 struct datawindow *gui_datawindow_new(struct gui *gui, const char *name, struct callback *click, struct callback *close);
66 int gui_add_bookmark(struct gui *gui, struct pcoord *c, char *description);
67 int gui_set_graphics(struct gui *this_, struct graphics *gra);
68 void gui_disable_suspend(struct gui *this_);
69 int gui_has_main_loop(struct gui *this_);
70 int gui_run_main_loop(struct gui *this_);
71 /* end of prototypes */
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif
77 
attr_type
Definition: attr.h:34
static char * description(struct search_param *search, GtkTreeIter *iter)
Definition: destination.c:56
char type[3]
Definition: garmin_img.c:2
int gui_add_attr(struct gui *this_, struct attr *attr)
Definition: gui.c:85
void gui_disable_suspend(struct gui *this_)
Definition: gui.c:153
int gui_run_main_loop(struct gui *this_)
Definition: gui.c:164
int gui_set_attr(struct gui *this_, struct attr *attr)
Definition: gui.c:76
int gui_add_bookmark(struct gui *gui, struct pcoord *c, char *description)
Definition: gui.c:134
struct menu * gui_popup_new(struct gui *gui)
Definition: gui.c:107
struct gui * gui_new(struct attr *parent, struct attr **attrs)
Definition: gui.c:38
int gui_get_attr(struct gui *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition: gui.c:61
int gui_has_main_loop(struct gui *this_)
Definition: gui.c:158
int gui_set_graphics(struct gui *this_, struct graphics *gra)
Definition: gui.c:145
struct menu * gui_menubar_new(struct gui *gui)
Definition: gui.c:93
struct datawindow * gui_datawindow_new(struct gui *gui, const char *name, struct callback *click, struct callback *close)
Definition: gui.c:121
static struct pcoord c
Definition: popup.c:375
char name[0]
Definition: street.c:3
Definition: config_.c:47
Definition: attr.h:157
Definition: callback.c:27
Definition: coord.h:34
Definition: data_window.h:27
Definition: datawindow.c:31
Definition: data_window.h:33
graphics object A graphics object serves as the target for drawing operations. It encapsulates variou...
Definition: graphics.c:75
Definition: gui.h:35
int(* get_attr)(struct gui_priv *priv, enum attr_type type, struct attr *attr)
Definition: gui.h:43
int(* add_attr)(struct gui_priv *priv, struct attr *attr)
Definition: gui.h:44
void(* disable_suspend)(struct gui_priv *priv)
Definition: gui.h:42
int(* set_graphics)(struct gui_priv *priv, struct graphics *gra)
Definition: gui.h:38
int(* add_bookmark)(struct gui_priv *priv, struct pcoord *c, char *description)
Definition: gui.h:41
int(* set_attr)(struct gui_priv *priv, struct attr *attr)
Definition: gui.h:45
int(* run_main_loop)(struct gui_priv *priv)
Definition: gui.h:39
Definition: graphics_win32.h:52
Definition: gui.c:30
struct attr ** attrs
Definition: gui.c:33
Definition: menu.h:33
Definition: graphics_win32.h:46
Definition: menu.h:40
Definition: navit.c:112
Definition: gpx2navit_txt.h:51
Definition: coord.h:52