The Gnome Chemistry Utils  0.14.0
gcrcrystalviewer.h
Go to the documentation of this file.
1 /*
2  * Gnome Chemisty Utils
3  * gcr/gcrcrystalviewer.h
4  *
5  * Copyright (C) 2002-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 
27 #ifndef GCR_CRYSTAL_VIEWER_H
28 #define GCR_CRYSTAL_VIEWER_H
29 
30 #include <gtk/gtk.h>
31 #include <libxml/tree.h>
32 
33 G_BEGIN_DECLS
34 
36 #define GCR_TYPE_CRYSTAL_VIEWER (gcr_crystal_viewer_get_type ())
37 
42 #define GCR_CRYSTAL_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_CRYSTAL_VIEWER, GcrCrystalViewer))
43 
47 #define GCR_CRYSTAL_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_CRYSTAL_VIEWER, GcrCrystalViewerClass))
48 
51 #define GCR_IS_CRYSTAL_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_CRYSTAL_VIEWER))
52 
55 #define GCR_IS_CRYSTAL_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_CRYSTAL_VIEWER))
56 
60 #define GCR_CRYSTAL_VIEWER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_CRYSTAL_VIEWER, GcrCrystalViewerClass))
61 
63 typedef struct _GcrCrystalViewer GcrCrystalViewer;
65 typedef struct _GcrCrystalViewerClass GcrCrystalViewerClass;
66 
76 GType gcr_crystal_viewer_get_type (void) G_GNUC_CONST;
84 GtkWidget* gcr_crystal_viewer_new (xmlNodePtr node);
92 void gcr_crystal_viewer_set_data (GcrCrystalViewer * viewer, xmlNodePtr node);
93 
103 GdkPixbuf *gcr_crystal_viewer_new_pixbuf (GcrCrystalViewer * viewer, guint width, guint height, gboolean use_bg);
104 
113 void gcr_crystal_viewer_set_uri_with_mime_type (GcrCrystalViewer * viewer, const gchar * uri, const gchar* mime_type);
121 void gcr_crystal_viewer_set_uri (GcrCrystalViewer * viewer, const gchar * uri);
122 
123 G_END_DECLS
124 
125 #endif // GCR_CRYSTAL_VIEWER_H