The Gnome Chemistry Utils  0.12.11
gcucrystalviewer.h
Go to the documentation of this file.
1 /*
2  * Gnome Chemisty Utils
3  * gcucrystalviewer.h
4  *
5  * Copyright (C) 2002-2010 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 2 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 
27 #ifndef GCU_CRYSTAL_VIEWER_H
28 #define GCU_CRYSTAL_VIEWER_H
29 
30 #include <gtk/gtkbin.h>
31 #include <libxml/tree.h>
32 
33 G_BEGIN_DECLS
34 
36 #define GCU_TYPE_CRYSTAL_VIEWER (gcu_crystal_viewer_get_type ())
37 
42 #define GCU_CRYSTAL_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCU_TYPE_CRYSTAL_VIEWER, GcuCrystalViewer))
43 
47 #define GCU_CRYSTAL_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCU_TYPE_CRYSTAL_VIEWER, GcuCrystalViewerClass))
48 
51 #define GCU_IS_CRYSTAL_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCU_TYPE_CRYSTAL_VIEWER))
52 
55 #define GCU_IS_CRYSTAL_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCU_TYPE_CRYSTAL_VIEWER))
56 
60 #define GCU_CRYSTAL_VIEWER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCU_TYPE_CRYSTAL_VIEWER, GcuCrystalViewerClass))
61 
63 typedef struct _GcuCrystalViewer GcuCrystalViewer;
65 typedef struct _GcuCrystalViewerClass GcuCrystalViewerClass;
66 
76 GType gcu_crystal_viewer_get_type (void) G_GNUC_CONST;
84 GtkWidget* gcu_crystal_viewer_new (xmlNodePtr node);
92 void gcu_crystal_viewer_set_data (GcuCrystalViewer * viewer, xmlNodePtr node);
93 
102 GdkPixbuf *gcu_crystal_viewer_new_pixbuf (GcuCrystalViewer * viewer, guint width, guint height);
103 
112 void gcu_crystal_viewer_set_uri_with_mime_type (GcuCrystalViewer * viewer, const gchar * uri, const gchar* mime_type);
120 void gcu_crystal_viewer_set_uri (GcuCrystalViewer * viewer, const gchar * uri);
121 
122 G_END_DECLS
123 
124 #endif //GCU_CRYSTAL_VIEWER_H