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

Contents of /navit/navit/gui.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Fri Oct 28 21:19:04 2011 UTC (12 years, 5 months ago) by zoff99
File MIME type: text/plain
File size: 2762 byte(s)
import files
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     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, 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, 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    

   
Visit the ZANavi Wiki