/[zanavi_public1]/navit/navit/gui.h
ZANavi

Diff of /navit/navit/gui.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 26 Revision 27
19 19
20#ifndef NAVIT_GUI_H 20#ifndef NAVIT_GUI_H
21#define NAVIT_GUI_H 21#define NAVIT_GUI_H
22 22
23#ifdef __cplusplus 23#ifdef __cplusplus
24extern "C" { 24extern "C"
25{
25#endif 26#endif
26struct navit; 27struct navit;
27struct gui_priv; 28struct gui_priv;
28struct menu_methods; 29struct menu_methods;
29struct datawindow_methods; 30struct datawindow_methods;
30struct callback; 31struct callback;
31struct graphics; 32struct graphics;
32struct coord; 33struct coord;
33struct pcoord; 34struct pcoord;
34 35
35struct gui_methods { 36struct gui_methods
37{
36 struct menu_priv *(*menubar_new)(struct gui_priv *priv, struct menu_methods *meth); 38 struct menu_priv *(*menubar_new)(struct gui_priv *priv,
39 struct menu_methods *meth);
37 struct menu_priv *(*popup_new)(struct gui_priv *priv, struct menu_methods *meth); 40 struct menu_priv *(*popup_new)(struct gui_priv *priv,
41 struct menu_methods *meth);
38 int (*set_graphics)(struct gui_priv *priv, struct graphics *gra); 42 int (*set_graphics)(struct gui_priv *priv, struct graphics *gra);
39 int (*run_main_loop)(struct gui_priv *priv); 43 int (*run_main_loop)(struct gui_priv *priv);
40 struct datawindow_priv *(*datawindow_new)(struct gui_priv *priv, char *name, struct callback *click, struct callback *close, struct datawindow_methods *meth); 44 struct datawindow_priv *(*datawindow_new)(struct gui_priv *priv,
45 char *name, struct callback *click, struct callback *close,
46 struct datawindow_methods *meth);
41 int (*add_bookmark)(struct gui_priv *priv, struct pcoord *c, char *description); 47 int (*add_bookmark)(struct gui_priv *priv, struct pcoord *c,
48 char *description);
42 void (*disable_suspend)(struct gui_priv *priv); 49 void (*disable_suspend)(struct gui_priv *priv);
43 int (*get_attr)(struct gui_priv *priv, enum attr_type type, struct attr *attr); 50 int (*get_attr)(struct gui_priv *priv, enum attr_type type,
51 struct attr *attr);
44 int (*add_attr)(struct gui_priv *priv, struct attr *attr); 52 int (*add_attr)(struct gui_priv *priv, struct attr *attr);
45 int (*set_attr)(struct gui_priv *priv, struct attr *attr); 53 int (*set_attr)(struct gui_priv *priv, struct attr *attr);
46}; 54};
47
48 55
49/* prototypes */ 56/* prototypes */
50enum attr_type; 57enum attr_type;
51struct attr; 58struct attr;
52struct attr_iter; 59struct attr_iter;
55struct graphics; 62struct graphics;
56struct gui; 63struct gui;
57struct menu; 64struct menu;
58struct pcoord; 65struct pcoord;
59struct gui *gui_new(struct attr *parent, struct attr **attrs); 66struct gui *gui_new(struct attr *parent, struct attr **attrs);
60int gui_get_attr(struct gui *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter); 67int gui_get_attr(struct gui *this_, enum attr_type type, struct attr *attr,
68 struct attr_iter *iter);
61int gui_set_attr(struct gui *this_, struct attr *attr); 69int gui_set_attr(struct gui *this_, struct attr *attr);
62int gui_add_attr(struct gui *this_, struct attr *attr); 70int gui_add_attr(struct gui *this_, struct attr *attr);
63struct menu *gui_menubar_new(struct gui *gui); 71struct menu *gui_menubar_new(struct gui *gui);
64struct menu *gui_popup_new(struct gui *gui); 72struct menu *gui_popup_new(struct gui *gui);
65struct datawindow *gui_datawindow_new(struct gui *gui, char *name, struct callback *click, struct callback *close); 73struct datawindow *gui_datawindow_new(struct gui *gui, char *name,
74 struct callback *click, struct callback *close);
66int gui_add_bookmark(struct gui *gui, struct pcoord *c, char *description); 75int gui_add_bookmark(struct gui *gui, struct pcoord *c, char *description);
67int gui_set_graphics(struct gui *this_, struct graphics *gra); 76int gui_set_graphics(struct gui *this_, struct graphics *gra);
68void gui_disable_suspend(struct gui *this_); 77void gui_disable_suspend(struct gui *this_);
69int gui_has_main_loop(struct gui *this_); 78int gui_has_main_loop(struct gui *this_);
70int gui_run_main_loop(struct gui *this_); 79int gui_run_main_loop(struct gui *this_);

Legend:
Removed from v.26  
changed lines
  Added in v.27

   
Visit the ZANavi Wiki