49f434d4310c3fe1905ee113b98a8dc4a9ad6166
[pspp-builds.git] / lib / gtksheet / psppire-axis-uniform.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2008  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_AXIS_UNIFORM_H__
19 #define PSPPIRE_AXIS_UNIFORM_H__
20
21
22 #include <glib-object.h>
23 #include <glib.h>
24
25 #include "psppire-axis.h"
26
27 G_BEGIN_DECLS
28
29
30 /* --- type macros --- */
31 #define G_TYPE_PSPPIRE_AXIS_UNIFORM              (psppire_axis_uniform_get_type ())
32 #define PSPPIRE_AXIS_UNIFORM(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_PSPPIRE_AXIS_UNIFORM, PsppireAxisUniform))
33 #define PSPPIRE_AXIS_UNIFORM_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), G_TYPE_PSPPIRE_AXIS_UNIFORM, PsppireAxisUniformClass))
34 #define PSPPIRE_IS_AXIS_UNIFORM(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), G_TYPE_PSPPIRE_AXIS_UNIFORM))
35 #define PSPPIRE_IS_AXIS_UNIFORM_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), G_TYPE_PSPPIRE_AXIS_UNIFORM))
36 #define PSPPIRE_AXIS_UNIFORM_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_PSPPIRE_AXIS_UNIFORM, PsppireAxisUniformClass))
37
38
39
40 /* --- typedefs & structures --- */
41 typedef struct _PsppireAxisUniform         PsppireAxisUniform;
42 typedef struct _PsppireAxisUniformClass PsppireAxisUniformClass;
43
44 struct pool;
45
46 struct _PsppireAxisUniform
47 {
48   PsppireAxis  parent;
49
50   gint n_items;
51 };
52
53 struct _PsppireAxisUniformClass
54 {
55   PsppireAxisClass parent_class;
56 };
57
58 GType          psppire_axis_uniform_get_type (void);
59
60 PsppireAxisUniform*   psppire_axis_uniform_new (void);
61
62 \f
63 /* Interface between axis and model */
64
65
66 void psppire_axis_uniform_set_count (PsppireAxisUniform *axis, gint n);
67
68
69
70 G_END_DECLS
71
72 #endif /* PSPPIRE_AXIS_UNIFORM_H__ */