# gtkspectrumviewer.h

Go to the documentation of this file.

    00001 /*
    00002  * Gnome Chemisty Utils
    00003  * gtkspectrumviewer.h
    00004  *
    00005  * Copyright (C) 2007 Jean Bréfort <jean.brefort@normalesup.org>
    00006  *
    00007  * This program is free software; you can redistribute it and/or
    00008  * modify it under the terms of the GNU General Public License as
    00009  * published by the Free Software Foundation; either version 2 of the
    00010  * License, or (at your option) any later version.
    00011  *
    00012  * This program is distributed in the hope that it will be useful,
    00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00015  * GNU General Public License for more details.
    00016  *
    00017  * You should have received a copy of the GNU General Public License
    00018  * along with this program; if not, write to the Free Software
    00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
    00020  * USA
    00021  */
    00022
    00023 #ifndef GTK_SPECTRUM_VIEWER_H
    00024 #define GTK_SPECTRUM_VIEWER_H
    00025
    00026 #include <goffice/graph/gog-graph.h>
    00027 #include <gtk/gtkwidget.h>
    00028
    00029 G_BEGIN_DECLS
    00030
    00036 #define GTK_TYPE_SPECTRUM_VIEWER                  (gtk_spectrum_viewer_get_type ())
    00037
    00042 #define GTK_SPECTRUM_VIEWER(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPECTRUM_VIEWER, GtkSpectrumViewer))
    00043
    00047 #define GTK_SPECTRUM_VIEWER_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SPECTRUM_VIEWER, GtkSpectrumViewerClass
    00048
    00051 #define GTK_IS_SPECTRUM_VIEWER(obj)       (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SPECTRUM_VIEWER))
    00052
    00055 #define GTK_IS_SPECTRUM_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SPECTRUM_VIEWER))
    00056
    00060 #define GTK_SPECTRUM_VIEWER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SPECTRUM_VIEWER, GtkSpectrumViewerClass))
    00061
    00070 typedef struct _GtkSpectrumViewer       GtkSpectrumViewer;
    00072 typedef struct _GtkSpectrumViewerClass  GtkSpectrumViewerClass;
    00073
    00074 GType               gtk_spectrum_viewer_get_type          (void) G_GNUC_CONST;
    00081 GtkWidget*            gtk_spectrum_viewer_new               (const gchar* uri);
    00088 void    gtk_spectrum_viewer_set_uri     (GtkSpectrumViewer * viewer, const gchar * uri);
    00089
    00095 GogGraph *gtk_spectrum_viewer_get_graph (GtkSpectrumViewer * viewer);
    00096
    00097 G_END_DECLS
    00098
    00099 #endif //       GTK_SPECTRUM_VIEWER_H