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 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 
00047 typedef enum
00048 {
00049         BALL_AND_STICK,
00050         SPACEFILL
00051 } Display3DMode;
00052 
00053 GType gtk_display3d_get_type (void);
00054 #define GTK_DISPLAY_3D (gtk_display3d_get_type ())
00055 
00056 #define GTK_TYPE_CHEM3D_VIEWER            (gtk_chem3d_viewer_get_type ())
00057 #define GTK_CHEM3D_VIEWER(obj)            (GTK_CHECK_CAST ((obj), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewer))
00058 #define GTK_CHEM3D_VIEWER_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewerClass))
00059 #define GTK_IS_CHEM3D_VIEWER(obj)         (GTK_CHECK_TYPE ((obj), GTK_TYPE_CHEM3D_VIEWER))
00060 #define GTK_IS_CHEM3D_VIEWER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHEM3D_VIEWER))
00061 #define GTK_CHEM3D_VIEWER_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewerClass))
00062 
00085 typedef struct _GtkChem3DViewer       GtkChem3DViewer;
00086 typedef struct _GtkChem3DViewerClass  GtkChem3DViewerClass;
00087 
00088 struct _GtkChem3DViewer
00089 {
00090 //  GtkGLArea area;
00091         GtkBin bin;
00092 
00093   /*< private >*/
00094         struct _GtkChem3DViewerPrivate *priv;
00095 };
00096 
00097 struct _GtkChem3DViewerClass
00098 {
00099 //      GtkGLAreaClass parent_class;
00100         GtkBinClass parent_class;
00101 };
00102 
00103 GType               gtk_chem3d_viewer_get_type          (void) G_GNUC_CONST;
00110 GtkWidget*            gtk_chem3d_viewer_new               (const gchar* uri);
00119 void    gtk_chem3d_viewer_set_uri_with_mime_type        (GtkChem3DViewer * viewer, const gchar * uri, const gchar* mime_type);
00127 void    gtk_chem3d_viewer_set_uri       (GtkChem3DViewer * viewer, const gchar * uri);
00136 void    gtk_chem3d_viewer_set_data      (GtkChem3DViewer * viewer, const gchar * data, const gchar* mime_type);
00137 
00146 void gtk_chem3d_viewer_print(GtkChem3DViewer * viewer, GnomePrintContext *pc, gdouble width, gdouble height);
00147 
00148 G_END_DECLS
00149 
00150 #endif //GTK_CHEM3D_VIEWER_H

Generated on Fri Feb 10 08:29:24 2006 for The Gnome Chemistry Utils by  doxygen 1.4.1