74c3e8b2b7d646ed5bfd05eeeef346617ef3b374
[pspp-builds.git] / src / ui / gui / psppire-object.h
1 /* 
2     PSPPIRE --- A Graphical User Interface for PSPP
3     Copyright (C) 2004  Free Software Foundation
4     Written by John Darrington
5
6     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with this program; if not, write to the Free Software
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19     02110-1301, USA. */
20
21
22 #ifndef __PSPPIRE_OBJECT_H__
23 #define __PSPPIRE_OBJECT_H__
24
25 #include <glib-object.h>
26 #include <glib.h>
27
28 G_BEGIN_DECLS
29
30
31 /* --- type macros --- */
32 #define G_TYPE_PSPPIRE_OBJECT              (psppire_object_get_type ())
33 #define PSPPIRE_OBJECT(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_PSPPIRE_OBJECT, PsppireObject))
34 #define PSPPIRE_OBJECT_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), G_TYPE_PSPPIRE_OBJECT, PsppireObjectClass))
35 #define G_IS_PSPPIRE_OBJECT(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), G_TYPE_PSPPIRE_OBJECT))
36 #define G_IS_PSPPIRE_OBJECT_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), G_TYPE_PSPPIRE_OBJECT))
37 #define PSPPIRE_OBJECT_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_PSPPIRE_OBJECT, PsppireObjectClass))
38
39
40
41 /* --- typedefs & structures --- */
42 typedef struct _PsppireObject      PsppireObject;
43 typedef struct _PsppireObjectClass PsppireObjectClass;
44
45
46 struct _PsppireObject
47 {
48   GObject             parent;
49 };
50
51 struct _PsppireObjectClass
52 {
53   GObjectClass parent_class;
54
55 };
56
57
58 /* -- PsppireObject --- */
59 GType          psppire_object_get_type(void);
60 PsppireObject*      psppire_object_new(void);
61
62 G_END_DECLS
63
64 #endif /* __PSPPIRE_OBJECT_H__ */