Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

gtkchem3dviewer.h

Go to the documentation of this file.
00001 /* 
00002  * Gnome Chemisty Utils
00003  * gtkchem3dviewer.h 
00004  *
00005  * Copyright (C) 2003-2006
00006  *
00007  * Developed by Jean Bréfort <jean.brefort@normalesup.org>
00008  *
00009  * This program is free software; you can redistribute it and/or 
00010  * modify it under the terms of the GNU General Public License as 
00011  * published by the Free Software Foundation; either version 2 of the
00012  * License, or (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
00022  * USA
00023  */
00024 
00025 
00026 #ifndef GTK_CHEM3D_VIEWER_H
00027 #define GTK_CHEM3D_VIEWER_H
00028 
00029 //#include <gtkgl/gtkglarea.h>
00030 #include <gtk/gtkbin.h>
00031 #include <libxml/tree.h>
00032 #include <libgnomeprint/gnome-print.h>
00033 
00034 G_BEGIN_DECLS
00035 
00049 typedef enum
00050 {
00051         BALL_AND_STICK,
00052         SPACEFILL
00053 } Display3DMode;
00054 
00055 GType gtk_display3d_get_type (void);
00056 #define GTK_DISPLAY_3D (gtk_display3d_get_type ())
00057 
00058 #define GTK_TYPE_CHEM3D_VIEWER            (gtk_chem3d_viewer_get_type ())
00059 #define GTK_CHEM3D_VIEWER(obj)            (GTK_CHECK_CAST ((obj), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewer))
00060 #define GTK_CHEM3D_VIEWER_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewerClass))
00061 #define GTK_IS_CHEM3D_VIEWER(obj)         (GTK_CHECK_TYPE ((obj), GTK_TYPE_CHEM3D_VIEWER))
00062 #define GTK_IS_CHEM3D_VIEWER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHEM3D_VIEWER))
00063 #define GTK_CHEM3D_VIEWER_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewerClass))
00064 
00087 typedef struct _GtkChem3DViewer       GtkChem3DViewer;
00088 typedef struct _GtkChem3DViewerClass  GtkChem3DViewerClass;
00089 
00090 struct _GtkChem3DViewer
00091 {
00092 //  GtkGLArea area;
00093         GtkBin bin;
00094 
00095   /*< private >*/
00096         struct _GtkChem3DViewerPrivate *priv;
00097 };
00098 
00099 struct _GtkChem3DViewerClass
00100 {
00101 //      GtkGLAreaClass parent_class;
00102         GtkBinClass parent_class;
00103 };
00104 
00105 GType               gtk_chem3d_viewer_get_type          (void) G_GNUC_CONST;
00112 GtkWidget*            gtk_chem3d_viewer_new               (const gchar* uri);
00121 void    gtk_chem3d_viewer_set_uri_with_mime_type        (GtkChem3DViewer * viewer, const gchar * uri, const gchar* mime_type);
00129 void    gtk_chem3d_viewer_set_uri       (GtkChem3DViewer * viewer, const gchar * uri);
00138 void    gtk_chem3d_viewer_set_data      (GtkChem3DViewer * viewer, const gchar * data, const gchar* mime_type);
00139 
00148 void gtk_chem3d_viewer_print(GtkChem3DViewer * viewer, GnomePrintContext *pc, gdouble width, gdouble height);
00149 
00150 G_END_DECLS
00151 
00152 #endif //GTK_CHEM3D_VIEWER_H

Generated on Wed Feb 8 09:59:43 2006 for The Gnome Chemistry Utils by  doxygen 1.4.1