gtkchem3dviewer.h

Go to the documentation of this file.
00001 /* 
00002  * Gnome Chemisty Utils
00003  * gtkchem3dviewer.h 
00004  *
00005  * Copyright (C) 2003-2006 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 
00024 #ifndef GTK_CHEM3D_VIEWER_H
00025 #define GTK_CHEM3D_VIEWER_H
00026 
00027 #include <gtk/gtkbin.h>
00028 
00029 G_BEGIN_DECLS
00030 
00035 GType gtk_display3d_get_type (void);
00039 #define GTK_DISPLAY_3D (gtk_display3d_get_type ())
00040 
00042 #define GTK_TYPE_CHEM3D_VIEWER            (gtk_chem3d_viewer_get_type ())
00043 
00048 #define GTK_CHEM3D_VIEWER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewer))
00049 
00053 #define GTK_CHEM3D_VIEWER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewerClass))
00054 
00057 #define GTK_IS_CHEM3D_VIEWER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CHEM3D_VIEWER))
00058 
00061 #define GTK_IS_CHEM3D_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHEM3D_VIEWER))
00062 
00066 #define GTK_CHEM3D_VIEWER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewerClass))
00067 
00091 typedef struct _GtkChem3DViewer       GtkChem3DViewer;
00093 typedef struct _GtkChem3DViewerClass  GtkChem3DViewerClass;
00094 
00095 GType               gtk_chem3d_viewer_get_type          (void) G_GNUC_CONST;
00102 GtkWidget*            gtk_chem3d_viewer_new               (const gchar* uri);
00111 void    gtk_chem3d_viewer_set_uri_with_mime_type        (GtkChem3DViewer * viewer, const gchar * uri, const gchar* mime_type);
00119 void    gtk_chem3d_viewer_set_uri       (GtkChem3DViewer * viewer, const gchar * uri);
00128 void    gtk_chem3d_viewer_set_data      (GtkChem3DViewer * viewer, const gchar * data, const gchar* mime_type);
00129 
00138 GdkPixbuf *gtk_chem3d_viewer_new_pixbuf (GtkChem3DViewer * viewer, guint width, guint height);
00139 
00140 G_END_DECLS
00141 
00142 #endif //GTK_CHEM3D_VIEWER_H

Generated on Thu Dec 31 11:27:59 2009 for The Gnome Chemistry Utils by  doxygen 1.6.1