Improve rendering of active cell border
[pspp-builds.git] / lib / gtksheet / psppire-axis-hetero.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_HETERO_H__
19 #define PSPPIRE_AXIS_HETERO_H__
20
21
22 #include <glib-object.h>
23 #include <glib.h>
24
25 #include <libpspp/tower.h>
26 #include "psppire-axis.h"
27
28 G_BEGIN_DECLS
29
30
31 /* --- type macros --- */
32 #define G_TYPE_PSPPIRE_AXIS_HETERO              (psppire_axis_hetero_get_type ())
33 #define PSPPIRE_AXIS_HETERO(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_PSPPIRE_AXIS_HETERO, PsppireAxisHetero))
34 #define PSPPIRE_AXIS_HETERO_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), G_TYPE_PSPPIRE_AXIS_HETERO, PsppireAxisHeteroClass))
35 #define PSPPIRE_IS_AXIS_HETERO(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), G_TYPE_PSPPIRE_AXIS_HETERO))
36 #define PSPPIRE_IS_AXIS_HETERO_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), G_TYPE_PSPPIRE_AXIS_HETERO))
37 #define PSPPIRE_AXIS_HETERO_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_PSPPIRE_AXIS_HETERO, PsppireAxisHeteroClass))
38
39
40
41 /* --- typedefs & structures --- */
42 typedef struct _PsppireAxisHetero          PsppireAxisHetero;
43 typedef struct _PsppireAxisHeteroClass PsppireAxisHeteroClass;
44
45 struct pool;
46
47 struct _PsppireAxisHetero
48 {
49   PsppireAxis  parent;
50
51   struct tower tower;
52   struct pool *pool;
53 };
54
55 struct _PsppireAxisHeteroClass
56 {
57   PsppireAxisClass parent_class;
58 };
59
60 GType          psppire_axis_hetero_get_type (void);
61
62 PsppireAxisHetero*   psppire_axis_hetero_new (void);
63
64 \f
65 /* Interface between axis and model */
66
67 void psppire_axis_hetero_clear (PsppireAxisHetero *a);
68
69 void psppire_axis_hetero_append (PsppireAxisHetero *a, gint size);
70
71 void psppire_axis_hetero_insert (PsppireAxisHetero *a, gint size, gint posn);
72
73 void psppire_axis_hetero_remove (PsppireAxisHetero *a, gint posn);
74
75 void psppire_axis_hetero_resize_unit (PsppireAxisHetero *a, gint size, gint posn);
76
77
78 G_END_DECLS
79
80 #endif /* PSPPIRE_AXIS_HETERO_H__ */