The Gnome Chemistry Utils  0.14.0
gcuspectrumviewer.h
Go to the documentation of this file.
1 /*
2  * Gnome Chemisty Utils
3  * gcuspectrumviewer.h
4  *
5  * Copyright (C) 2007-2012 Jean Bréfort <jean.brefort@normalesup.org>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
20  * USA
21  */
22 
23 #ifndef GCU_SPECTRUM_VIEWER_H
24 #define GCU_SPECTRUM_VIEWER_H
25 
26 #include <goffice/goffice.h>
27 
28 G_BEGIN_DECLS
29 
35 #define GCU_TYPE_SPECTRUM_VIEWER (gcu_spectrum_viewer_get_type ())
36 
41 #define GCU_SPECTRUM_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCU_TYPE_SPECTRUM_VIEWER, GcuSpectrumViewer))
42 
46 #define GCU_SPECTRUM_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCU_TYPE_SPECTRUM_VIEWER, GcuSpectrumViewerClass
47 
50 #define GCU_IS_SPECTRUM_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCU_TYPE_SPECTRUM_VIEWER))
51 
54 #define GCU_IS_SPECTRUM_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCU_TYPE_SPECTRUM_VIEWER))
55 
59 #define GCU_SPECTRUM_VIEWER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCU_TYPE_SPECTRUM_VIEWER, GcuSpectrumViewerClass))
60 
69 typedef struct _GcuSpectrumViewer GcuSpectrumViewer;
71 typedef struct _GcuSpectrumViewerClass GcuSpectrumViewerClass;
72 
73 GType gcu_spectrum_viewer_get_type (void) G_GNUC_CONST;
80 GtkWidget* gcu_spectrum_viewer_new (const gchar* uri);
87 void gcu_spectrum_viewer_set_uri (GcuSpectrumViewer * viewer, const gchar * uri);
88 
95 
96 G_END_DECLS
97 
98 #endif // GCU_SPECTRUM_VIEWER_H