The Gnome Chemistry Utils  0.14.0
gcuchem3dviewer.h
Go to the documentation of this file.
1 /*
2  * Gnome Chemisty Utils
3  * gcuchem3dviewer.h
4  *
5  * Copyright (C) 2003-2012 Jean Bréfort <jean.brefort@normalesup.org>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
20  * USA
21  */
22 
23 
24 #ifndef GCU_CHEM3D_VIEWER_H
25 #define GCU_CHEM3D_VIEWER_H
26 
27 #include <gtk/gtk.h>
28 
29 G_BEGIN_DECLS
30 
35 GType gcu_display3d_get_type (void);
39 #define GCU_DISPLAY_3D (gcu_display3d_get_type ())
40 
42 #define GCU_TYPE_CHEM3D_VIEWER (gcu_chem3d_viewer_get_type ())
43 
48 #define GCU_CHEM3D_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCU_TYPE_CHEM3D_VIEWER, GcuChem3DViewer))
49 
53 #define GCU_CHEM3D_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCU_TYPE_CHEM3D_VIEWER, GcuChem3DViewerClass))
54 
57 #define GCU_IS_CHEM3D_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCU_TYPE_CHEM3D_VIEWER))
58 
61 #define GCU_IS_CHEM3D_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCU_TYPE_CHEM3D_VIEWER))
62 
66 #define GCU_CHEM3D_VIEWER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CHEM3D_VIEWER, GcuChem3DViewerClass))
67 
91 typedef struct _GcuChem3DViewer GcuChem3DViewer;
93 typedef struct _GcuChem3DViewerClass GcuChem3DViewerClass;
94 
95 GType gcu_chem3d_viewer_get_type (void) G_GNUC_CONST;
102 GtkWidget* gcu_chem3d_viewer_new (const gchar* uri);
111 void gcu_chem3d_viewer_set_uri_with_mime_type (GcuChem3DViewer * viewer, const gchar * uri, const gchar* mime_type);
119 void gcu_chem3d_viewer_set_uri (GcuChem3DViewer * viewer, const gchar * uri);
129 void gcu_chem3d_viewer_set_data (GcuChem3DViewer * viewer, const gchar * data, const gchar* mime_type, size_t size);
130 
140 GdkPixbuf *gcu_chem3d_viewer_new_pixbuf (GcuChem3DViewer * viewer, guint width, guint height, gboolean use_bg);
141 
142 G_END_DECLS
143 
144 #endif //GCU_CHEM3D_VIEWER_H