#include <gtk/gtkbin.h>
#include <libxml/tree.h>
Go to the source code of this file.
Defines | |
#define | GCR_TYPE_CRYSTAL_VIEWER (gcr_crystal_viewer_get_type ()) |
#define | GCR_CRYSTAL_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_CRYSTAL_VIEWER, GcrCrystalViewer)) |
#define | GCR_CRYSTAL_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_CRYSTAL_VIEWER, GcuCrystalViewerClass)) |
#define | GCR_IS_CRYSTAL_VIEWER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_CRYSTAL_VIEWER)) |
#define | GCR_IS_CRYSTAL_VIEWER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_CRYSTAL_VIEWER)) |
#define | GCR_CRYSTAL_VIEWER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_CRYSTAL_VIEWER, GcrCrystalViewerClass)) |
Typedefs | |
typedef struct _GcrCrystalViewer | GcrCrystalViewer |
typedef struct _GcrCrystalViewerClass | GcrCrystalViewerClass |
Functions | |
GtkWidget * | gcr_crystal_viewer_new (xmlNodePtr node) |
void | gcr_crystal_viewer_set_data (GcrCrystalViewer *viewer, xmlNodePtr node) |
GdkPixbuf * | gcr_crystal_viewer_new_pixbuf (GcrCrystalViewer *viewer, guint width, guint height) |
void | gcr_crystal_viewer_set_uri_with_mime_type (GcrCrystalViewer *viewer, const gchar *uri, const gchar *mime_type) |
void | gcr_crystal_viewer_set_uri (GcrCrystalViewer *viewer, const gchar *uri) |
Definition in file gcrcrystalviewer.h.
#define GCR_CRYSTAL_VIEWER | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_CRYSTAL_VIEWER, GcrCrystalViewer)) |
Casts obj to a GcuCrystalViewer * pointer.
Definition at line 42 of file gcrcrystalviewer.h.
#define GCR_CRYSTAL_VIEWER_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_CRYSTAL_VIEWER, GcuCrystalViewerClass)) |
Casts klass to a GcuCrystalViewerClass * pointer.
Definition at line 47 of file gcrcrystalviewer.h.
#define GCR_CRYSTAL_VIEWER_GET_CLASS | ( | obj | ) | (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_CRYSTAL_VIEWER, GcrCrystalViewerClass)) |
Definition at line 60 of file gcrcrystalviewer.h.
#define GCR_IS_CRYSTAL_VIEWER | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_CRYSTAL_VIEWER)) |
Definition at line 51 of file gcrcrystalviewer.h.
#define GCR_IS_CRYSTAL_VIEWER_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_CRYSTAL_VIEWER)) |
Definition at line 55 of file gcrcrystalviewer.h.
#define GCR_TYPE_CRYSTAL_VIEWER (gcr_crystal_viewer_get_type ()) |
typedef struct _GcrCrystalViewer GcrCrystalViewer |
The GcrCrystalViewer widget.
Definition at line 63 of file gcrcrystalviewer.h.
typedef struct _GcrCrystalViewerClass GcrCrystalViewerClass |
The GcrCrystalViewer widget object class.
Definition at line 65 of file gcrcrystalviewer.h.
GtkWidget* gcr_crystal_viewer_new | ( | xmlNodePtr | node | ) |
node,: | a pointer to an xlNode (from libxml) containing the serialized version of the crystal to display as saved by Gnome Crystal or NULL. |
Referenced by main().
GdkPixbuf* gcr_crystal_viewer_new_pixbuf | ( | GcrCrystalViewer * | viewer, | |
guint | width, | |||
guint | height | |||
) |
viewer | a pointer to a GcrCrystalViewer widget. | |
width | the width of the new pixbuf. | |
height | the height of the new pixbuf. |
void gcr_crystal_viewer_set_data | ( | GcrCrystalViewer * | viewer, | |
xmlNodePtr | node | |||
) |
viewer,: | a pointer to a GcrCrystalViewer widget. | |
node,: | a pointer to an xlNode (from libxml) containing the serialized version of the crystal to display as saved by Gnome Crystal. |
void gcr_crystal_viewer_set_uri | ( | GcrCrystalViewer * | viewer, | |
const gchar * | uri | |||
) |
viewer | a pointer to a GcrCrystalViewer widget. | |
uri | the URI of the file containing the crystal structure to display. |
void gcr_crystal_viewer_set_uri_with_mime_type | ( | GcrCrystalViewer * | viewer, | |
const gchar * | uri, | |||
const gchar * | mime_type | |||
) |
viewer | a pointer to a GcrCrystalViewer widget. | |
uri | the URI of the file containing the crystal structure to display. | |
mime_type,: | the mime_type of the data. |