1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2009  Free Software Foundation
3 
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
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 General Public License for more details.
13 
14    You should have received a copy of the GNU General Public License
15    along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 */
17 
18 #ifndef __PSPPIRE_SELECT_DEST_H__
19 #define __PSPPIRE_SELECT_DEST_H__
20 
21 #include <glib-object.h>
22 
23 GType              psppire_select_dest_widget_get_type   (void) G_GNUC_CONST;
24 
25 #define PSPPIRE_TYPE_SELECT_DEST_WIDGET      (psppire_select_dest_widget_get_type ())
26 #define PSPPIRE_SELECT_DEST_WIDGET(obj)      (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_TYPE_SELECT_DEST_WIDGET, PsppireSelectDestWidget))
27 #define PSPPIRE_IS_SELECT_DEST_WIDGET(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_TYPE_SELECT_DEST_WIDGET))
28 
29 
30 #define PSPPIRE_SELECT_DEST_GET_IFACE(obj) \
31    (G_TYPE_INSTANCE_GET_INTERFACE ((obj), PSPPIRE_TYPE_SELECT_DEST_WIDGET, PsppireSelectDestWidgetIface))
32 
33 typedef struct _PsppireSelectDestWidgetIface  PsppireSelectDestWidgetIface;
34 
35 
36 typedef struct _PsppireSelectDestWidget  PsppireSelectDestWidget;  /* Dummy typedef */
37 
38 struct _PsppireSelectDestWidgetIface
39 {
40   GTypeInterface g_iface;
41 
42   /* Return TRUE iff DEST contains V */
43   gboolean (*contains_var) (PsppireSelectDestWidget *dest, const GValue *v);
44 };
45 
46 
47 gboolean psppire_select_dest_widget_contains_var (PsppireSelectDestWidget *m, const GValue *v);
48 
49 #endif
50