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 00006 * 00007 * Developed by Jean Bréfort <jean.brefort@ac-dijon.fr> 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 <gtk/gtkbin.h> 00030 #include <libxml/tree.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 00096 typedef struct _GtkChem3DViewer GtkChem3DViewer; 00097 typedef struct _GtkChem3DViewerClass GtkChem3DViewerClass; 00098 00099 struct _GtkChem3DViewer 00100 { 00101 // GtkGLArea area; 00102 GtkBin bin; 00103 00104 /*< private >*/ 00105 struct _GtkChem3DViewerPrivate *priv; 00106 }; 00107 00108 struct _GtkChem3DViewerClass 00109 { 00110 // GtkGLAreaClass parent_class; 00111 GtkBinClass parent_class; 00112 }; 00113 00114 GType gtk_chem3d_viewer_get_type (void) G_GNUC_CONST; 00121 GtkWidget* gtk_chem3d_viewer_new (gchar* uri); 00129 void gtk_chem3d_viewer_set_uri (GtkChem3DViewer * viewer, gchar* uri); 00138 void gtk_chem3d_viewer_set_data (GtkChem3DViewer * viewer, const gchar* data, const gchar* mime_type); 00139 00140 G_END_DECLS 00141 00142 #endif //GTK_CHEM3D_VIEWER_H

Generated on Wed Oct 20 09:55:37 2004 for The Gnome Chemistry Utils by doxygen 1.3.8