1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2008 Free Software Foundation
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.
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.
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/>. */
18 #ifndef PSPPIRE_AXIS_HETERO_H__
19 #define PSPPIRE_AXIS_HETERO_H__
22 #include <glib-object.h>
25 #include <libpspp/tower.h>
26 #include "psppire-axis.h"
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))
41 /* --- typedefs & structures --- */
42 typedef struct _PsppireAxisHetero PsppireAxisHetero;
43 typedef struct _PsppireAxisHeteroClass PsppireAxisHeteroClass;
47 struct _PsppireAxisHetero
55 struct _PsppireAxisHeteroClass
57 PsppireAxisClass parent_class;
60 GType psppire_axis_hetero_get_type (void);
62 PsppireAxisHetero* psppire_axis_hetero_new (void);
65 /* Interface between axis and model */
67 void psppire_axis_hetero_clear (PsppireAxisHetero *a);
69 void psppire_axis_hetero_append (PsppireAxisHetero *a, gint size);
71 void psppire_axis_hetero_insert (PsppireAxisHetero *a, gint size, gint posn);
73 void psppire_axis_hetero_remove (PsppireAxisHetero *a, gint posn);
75 void psppire_axis_hetero_resize_unit (PsppireAxisHetero *a, gint size, gint posn);
80 #endif /* PSPPIRE_AXIS_HETERO_H__ */