Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | 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-2004 00006 * 00007 * Developed by Jean Bréfort <jean.brefort@normalesup.org> 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2.1 of the License, or (at your option) any later version. 00013 * 00014 * This library 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 GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with this library; if not, write to the 00021 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00022 * Boston, MA 02111-1307, 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 00033 G_BEGIN_DECLS 00034 00048 typedef enum 00049 { 00050 BALL_AND_STICK, 00051 SPACEFILL 00052 } Display3DMode; 00053 00054 GType gtk_display3d_get_type (void); 00055 #define GTK_DISPLAY_3D (gtk_display3d_get_type ()) 00056 00057 #define GTK_TYPE_CHEM3D_VIEWER (gtk_chem3d_viewer_get_type ()) 00058 #define GTK_CHEM3D_VIEWER(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewer)) 00059 #define GTK_CHEM3D_VIEWER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewerClass)) 00060 #define GTK_IS_CHEM3D_VIEWER(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CHEM3D_VIEWER)) 00061 #define GTK_IS_CHEM3D_VIEWER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHEM3D_VIEWER)) 00062 #define GTK_CHEM3D_VIEWER_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewerClass)) 00063 00097 typedef struct _GtkChem3DViewer GtkChem3DViewer; 00098 typedef struct _GtkChem3DViewerClass GtkChem3DViewerClass; 00099 00100 struct _GtkChem3DViewer 00101 { 00102 // GtkGLArea area; 00103 GtkBin bin; 00104 00105 /*< private >*/ 00106 struct _GtkChem3DViewerPrivate *priv; 00107 }; 00108 00109 struct _GtkChem3DViewerClass 00110 { 00111 // GtkGLAreaClass parent_class; 00112 GtkBinClass parent_class; 00113 }; 00114 00115 GType gtk_chem3d_viewer_get_type (void) G_GNUC_CONST; 00122 GtkWidget* gtk_chem3d_viewer_new (gchar* uri); 00130 void gtk_chem3d_viewer_set_uri (GtkChem3DViewer * viewer, gchar* uri); 00139 void gtk_chem3d_viewer_set_data (GtkChem3DViewer * viewer, const gchar* data, const gchar* mime_type); 00140 00141 G_END_DECLS 00142 00143 #endif //GTK_CHEM3D_VIEWER_H

Generated on Tue Sep 21 14:59:35 2004 for The Gnome Chemistry Utils by doxygen 1.3.8