The Gnome Chemistry Utils 0.13.3
|
00001 /* 00002 * Gnome Chemisty Utils 00003 * gcr/gcrcrystalviewer.h 00004 * 00005 * Copyright (C) 2002-2010 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 00027 #ifndef GCR_CRYSTAL_VIEWER_H 00028 #define GCR_CRYSTAL_VIEWER_H 00029 00030 #include <gtk/gtkbin.h> 00031 #include <libxml/tree.h> 00032 00033 G_BEGIN_DECLS 00034 00036 #define GCR_TYPE_CRYSTAL_VIEWER (gcr_crystal_viewer_get_type ()) 00037 00042 #define GCR_CRYSTAL_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_CRYSTAL_VIEWER, GcrCrystalViewer)) 00043 00047 #define GCR_CRYSTAL_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_CRYSTAL_VIEWER, GcuCrystalViewerClass)) 00048 00051 #define GCR_IS_CRYSTAL_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_CRYSTAL_VIEWER)) 00052 00055 #define GCR_IS_CRYSTAL_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_CRYSTAL_VIEWER)) 00056 00060 #define GCR_CRYSTAL_VIEWER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_CRYSTAL_VIEWER, GcrCrystalViewerClass)) 00061 00063 typedef struct _GcrCrystalViewer GcrCrystalViewer; 00065 typedef struct _GcrCrystalViewerClass GcrCrystalViewerClass; 00066 00076 GType gcr_crystal_viewer_get_type (void) G_GNUC_CONST; 00084 GtkWidget* gcr_crystal_viewer_new (xmlNodePtr node); 00092 void gcr_crystal_viewer_set_data (GcrCrystalViewer * viewer, xmlNodePtr node); 00093 00102 GdkPixbuf *gcr_crystal_viewer_new_pixbuf (GcrCrystalViewer * viewer, guint width, guint height); 00103 00112 void gcr_crystal_viewer_set_uri_with_mime_type (GcrCrystalViewer * viewer, const gchar * uri, const gchar* mime_type); 00120 void gcr_crystal_viewer_set_uri (GcrCrystalViewer * viewer, const gchar * uri); 00121 00122 G_END_DECLS 00123 00124 #endif // GCR_CRYSTAL_VIEWER_H