Fix:gui_internal:Improved keyboard
[navit-package] / navit / data_window.h
1 /**
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_DATA_WINDOW_H
21 #define NAVIT_DATA_WINDOW_H
22
23 struct datawindow;
24 struct param_list;
25 struct datawindow_priv;
26
27 struct datawindow_methods {
28         void (*destroy)(struct datawindow_priv *win);
29         void (*add)(struct datawindow_priv *win, struct param_list *param, int count);
30         void (*mode)(struct datawindow_priv *win, int start);
31 };
32
33 struct datawindow {
34         struct datawindow_priv *priv;
35         struct datawindow_methods meth;
36 };
37
38
39 void datawindow_destroy(struct datawindow *win);
40 void datawindow_add(struct datawindow *win, struct param_list *param, int count);
41 void datawindow_mode(struct datawindow *win, int start);
42
43 #endif
44