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

Contents of /navit/navit/gui.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27 - (hide annotations) (download)
Mon Apr 9 21:27:36 2012 UTC (10 years, 9 months ago) by zoff99
File MIME type: text/plain
File size: 2783 byte(s)
lots of new stuff, tranlsations, bug fixes ...
1 zoff99 2 /**
2     * Navit, a modular navigation system.
3     * Copyright (C) 2005-2008 Navit Team
4     *
5     * This program is free software; you can redistribute it and/or
6     * modify it under the terms of the GNU Library General Public License
7     * version 2 as published by the Free Software Foundation.
8     *
9     * This program is distributed in the hope that it will be useful,
10     * but WITHOUT ANY WARRANTY; without even the implied warranty of
11     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12     * GNU Library General Public License for more details.
13     *
14     * You should have received a copy of the GNU Library General Public
15     * License along with this program; if not, write to the
16     * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17     * Boston, MA 02110-1301, USA.
18     */
19    
20     #ifndef NAVIT_GUI_H
21     #define NAVIT_GUI_H
22    
23     #ifdef __cplusplus
24 zoff99 27 extern "C"
25     {
26 zoff99 2 #endif
27     struct navit;
28     struct gui_priv;
29     struct menu_methods;
30     struct datawindow_methods;
31     struct callback;
32     struct graphics;
33     struct coord;
34     struct pcoord;
35    
36 zoff99 27 struct gui_methods
37     {
38     struct menu_priv *(*menubar_new)(struct gui_priv *priv,
39     struct menu_methods *meth);
40     struct menu_priv *(*popup_new)(struct gui_priv *priv,
41     struct menu_methods *meth);
42 zoff99 2 int (*set_graphics)(struct gui_priv *priv, struct graphics *gra);
43     int (*run_main_loop)(struct gui_priv *priv);
44 zoff99 27 struct datawindow_priv *(*datawindow_new)(struct gui_priv *priv,
45     char *name, struct callback *click, struct callback *close,
46     struct datawindow_methods *meth);
47     int (*add_bookmark)(struct gui_priv *priv, struct pcoord *c,
48     char *description);
49 zoff99 2 void (*disable_suspend)(struct gui_priv *priv);
50 zoff99 27 int (*get_attr)(struct gui_priv *priv, enum attr_type type,
51     struct attr *attr);
52 zoff99 2 int (*add_attr)(struct gui_priv *priv, struct attr *attr);
53     int (*set_attr)(struct gui_priv *priv, struct attr *attr);
54     };
55    
56     /* prototypes */
57     enum attr_type;
58     struct attr;
59     struct attr_iter;
60     struct callback;
61     struct datawindow;
62     struct graphics;
63     struct gui;
64     struct menu;
65     struct pcoord;
66     struct gui *gui_new(struct attr *parent, struct attr **attrs);
67 zoff99 27 int gui_get_attr(struct gui *this_, enum attr_type type, struct attr *attr,
68     struct attr_iter *iter);
69 zoff99 2 int gui_set_attr(struct gui *this_, struct attr *attr);
70     int gui_add_attr(struct gui *this_, struct attr *attr);
71     struct menu *gui_menubar_new(struct gui *gui);
72     struct menu *gui_popup_new(struct gui *gui);
73 zoff99 27 struct datawindow *gui_datawindow_new(struct gui *gui, char *name,
74     struct callback *click, struct callback *close);
75 zoff99 2 int gui_add_bookmark(struct gui *gui, struct pcoord *c, char *description);
76     int gui_set_graphics(struct gui *this_, struct graphics *gra);
77     void gui_disable_suspend(struct gui *this_);
78     int gui_has_main_loop(struct gui *this_);
79     int gui_run_main_loop(struct gui *this_);
80     /* end of prototypes */
81     #ifdef __cplusplus
82     }
83     #endif
84    
85     #endif
86    

   
Visit the ZANavi Wiki