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 <gtkgl/gtkglarea.h>
00028 #include <gtk/gtkbin.h>
00029 #include <libxml/tree.h>
00030 #include <libgnomeprint/gnome-print.h>
00031 
00032 G_BEGIN_DECLS
00033 
00048 GType gtk_display3d_get_type (void);
00049 #define GTK_DISPLAY_3D (gtk_display3d_get_type ())
00050 
00051 #define GTK_TYPE_CHEM3D_VIEWER            (gtk_chem3d_viewer_get_type ())
00052 #define GTK_CHEM3D_VIEWER(obj)            (GTK_CHECK_CAST ((obj), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewer))
00053 #define GTK_CHEM3D_VIEWER_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewerClass))
00054 #define GTK_IS_CHEM3D_VIEWER(obj)         (GTK_CHECK_TYPE ((obj), GTK_TYPE_CHEM3D_VIEWER))
00055 #define GTK_IS_CHEM3D_VIEWER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHEM3D_VIEWER))
00056 #define GTK_CHEM3D_VIEWER_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewerClass))
00057 
00080 typedef struct _GtkChem3DViewer       GtkChem3DViewer;
00081 typedef struct _GtkChem3DViewerClass  GtkChem3DViewerClass;
00082 
00083 struct _GtkChem3DViewer
00084 {
00085 //  GtkGLArea area;
00086         GtkBin bin;
00087 
00088   /*< private >*/
00089         struct _GtkChem3DViewerPrivate *priv;
00090 };
00091 
00092 struct _GtkChem3DViewerClass
00093 {
00094 //      GtkGLAreaClass parent_class;
00095         GtkBinClass parent_class;
00096 };
00097 
00098 GType               gtk_chem3d_viewer_get_type          (void) G_GNUC_CONST;
00105 GtkWidget*            gtk_chem3d_viewer_new               (const gchar* uri);
00114 void    gtk_chem3d_viewer_set_uri_with_mime_type        (GtkChem3DViewer * viewer, const gchar * uri, const gchar* mime_type);
00122 void    gtk_chem3d_viewer_set_uri       (GtkChem3DViewer * viewer, const gchar * uri);
00131 void    gtk_chem3d_viewer_set_data      (GtkChem3DViewer * viewer, const gchar * data, const gchar* mime_type);
00132 
00141 void gtk_chem3d_viewer_print(GtkChem3DViewer * viewer, GnomePrintContext *pc, gdouble width, gdouble height);
00142 
00143 G_END_DECLS
00144 
00145 #endif //GTK_CHEM3D_VIEWER_H

Generated on Tue Aug 15 10:47:35 2006 for The Gnome Chemistry Utils by  doxygen 1.4.7