Add Spectrograph sources and test files.
[dictix.git] / libdictix / dix-spectrograph.h
blob5cd460900607636055dfd3193f64f67bc21f244c
1 /**
2 * Dictix / DixSpectrograph - dix-spectrograph.h
4 * Copyright (C) Martin Blanchard 2011 <tinram@gmx.fr>
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.
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.
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 Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 #ifndef __DIX_SPECTROGRAPH_H__
23 #define __DIX_SPECTROGRAPH_H__
25 #include <glib.h>
26 #include <glib-object.h>
27 #include <gtk/gtk.h>
29 G_BEGIN_DECLS
31 #define DIX_TYPE_SPECTROGRAPH (dix_spectrograph_get_type ())
32 #define DIX_SPECTROGRAPH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIX_TYPE_SPECTROGRAPH, DixSpectrograph))
33 #define DIX_SPECTROGRAPH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIX_TYPE_SPECTROGRAPH, DixSpectrographClass))
34 #define DIX_IS_SPECTROGRAPH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIX_TYPE_SPECTROGRAPH))
35 #define DIX_IS_SPECTROGRAPH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIX_TYPE_SPECTROGRAPH))
36 #define DIX_SPECTROGRAPH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIX_TYPE_SPECTROGRAPH, DixSpectrographClass))
38 typedef struct _DixSpectrograph DixSpectrograph;
39 typedef struct _DixSpectrographClass DixSpectrographClass;
40 typedef struct _DixSpectrographPrivate DixSpectrographPrivate;
42 struct _DixSpectrograph
44 GtkWidget parent;
46 /* < private > */
47 DixSpectrographPrivate* priv;
51 struct _DixSpectrographClass
53 GtkWidgetClass parent_class;
55 /* < signals > */
59 GType dix_spectrograth_get_type (void) G_GNUC_CONST;
60 GtkWidget* dix_spectrograph_new ();
62 void dix_spectrograph_set_magnitudes (DixSpectrograph* spec,
63 guint bands,
64 gfloat* magnitudes);
66 G_END_DECLS
68 #endif /* __DIX_SPECTROGRAPH_H__ */