The Gnome Chemistry Utils: gtkchem3dviewer.h Source File

- Main Page
- Namespaces
- Classes
- Files
- Directories

# 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
    00038 GType gtk_display3d_get_type (void);
    00042 #define GTK_DISPLAY_3D (gtk_display3d_get_type ())
    00043
    00045 #define GTK_TYPE_CHEM3D_VIEWER            (gtk_chem3d_viewer_get_type ())
    00046
    00051 #define GTK_CHEM3D_VIEWER(obj)            (GTK_CHECK_CAST ((obj), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewer))
    00052
    00056 #define GTK_CHEM3D_VIEWER_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewerClass))
    00057
    00060 #define GTK_IS_CHEM3D_VIEWER(obj)         (GTK_CHECK_TYPE ((obj), GTK_TYPE_CHEM3D_VIEWER))
    00061
    00064 #define GTK_IS_CHEM3D_VIEWER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHEM3D_VIEWER))
    00065
    00069 #define GTK_CHEM3D_VIEWER_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_CHEM3D_VIEWER, GtkChem3DViewerClass))
    00070
    00095 typedef struct _GtkChem3DViewer       GtkChem3DViewer;
    00097 typedef struct _GtkChem3DViewerClass  GtkChem3DViewerClass;
    00098
    00099 GType               gtk_chem3d_viewer_get_type          (void) G_GNUC_CONST;
    00106 GtkWidget*            gtk_chem3d_viewer_new               (const gchar* uri);
    00115 void    gtk_chem3d_viewer_set_uri_with_mime_type        (GtkChem3DViewer * viewer, const gchar * uri, const gchar* mime_type);
    00123 void    gtk_chem3d_viewer_set_uri       (GtkChem3DViewer * viewer, const gchar * uri);
    00132 void    gtk_chem3d_viewer_set_data      (GtkChem3DViewer * viewer, const gchar * data, const gchar* mime_type);
    00133
    00142 void gtk_chem3d_viewer_print(GtkChem3DViewer * viewer, GnomePrintContext *pc, gdouble width, gdouble height);
    00143
    00144 G_END_DECLS
    00145
    00146 #endif //GTK_CHEM3D_VIEWER_H