The Gnome Chemistry Utils  0.14.0
Macros | Typedefs | Functions
gcuspectrumviewer.h File Reference
#include <goffice/goffice.h>

Go to the source code of this file.

Macros

#define GCU_TYPE_SPECTRUM_VIEWER   (gcu_spectrum_viewer_get_type ())
#define GCU_SPECTRUM_VIEWER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCU_TYPE_SPECTRUM_VIEWER, GcuSpectrumViewer))
#define GCU_SPECTRUM_VIEWER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GCU_TYPE_SPECTRUM_VIEWER, GcuSpectrumViewerClass
#define GCU_IS_SPECTRUM_VIEWER(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCU_TYPE_SPECTRUM_VIEWER))
#define GCU_IS_SPECTRUM_VIEWER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GCU_TYPE_SPECTRUM_VIEWER))
#define GCU_SPECTRUM_VIEWER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GCU_TYPE_SPECTRUM_VIEWER, GcuSpectrumViewerClass))

Typedefs

typedef struct _GcuSpectrumViewer GcuSpectrumViewer
typedef struct
_GcuSpectrumViewerClass 
GcuSpectrumViewerClass

Functions

GtkWidget * gcu_spectrum_viewer_new (const gchar *uri)
void gcu_spectrum_viewer_set_uri (GcuSpectrumViewer *viewer, const gchar *uri)
GogGraph * gcu_spectrum_viewer_get_graph (GcuSpectrumViewer *viewer)

Detailed Description

Declaration of the GcuSpectrumViewer widget.

Definition in file gcuspectrumviewer.h.

Macro Definition Documentation

#define GCU_IS_SPECTRUM_VIEWER (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCU_TYPE_SPECTRUM_VIEWER))
Returns
TRUE if obj points to a GcuSpectrumViewer widget, FALSE otherwise.

Definition at line 50 of file gcuspectrumviewer.h.

#define GCU_IS_SPECTRUM_VIEWER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GCU_TYPE_SPECTRUM_VIEWER))
Returns
TRUE if klass points to a GcuSpectrumViewerClass, FALSE otherwise.

Definition at line 54 of file gcuspectrumviewer.h.

#define GCU_SPECTRUM_VIEWER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCU_TYPE_SPECTRUM_VIEWER, GcuSpectrumViewer))

Casts obj to a GcuSpectrumViewer * pointer.

Returns
a pointer to the GcuSpectrumViewer * or NULL if obj does not point to a GcuSpectrumViewer widget.

Definition at line 41 of file gcuspectrumviewer.h.

#define GCU_SPECTRUM_VIEWER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GCU_TYPE_SPECTRUM_VIEWER, GcuSpectrumViewerClass

Casts klass to a GcuSpectrumViewerClass * pointer.

Returns
a pointer to the GcuSpectrumViewerClass * or NULL if obj not point to a GcuSpectrumViewerClass

Definition at line 46 of file gcuspectrumviewer.h.

#define GCU_SPECTRUM_VIEWER_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GCU_TYPE_SPECTRUM_VIEWER, GcuSpectrumViewerClass))
Returns
the GcuSpectrumViewerClass * associated to obj if obj points to a GcuSpectrumViewer widget, NULL otherwise.

Definition at line 59 of file gcuspectrumviewer.h.

#define GCU_TYPE_SPECTRUM_VIEWER   (gcu_spectrum_viewer_get_type ())
Returns
the GType associated to GcuSpectrumViewer

Definition at line 35 of file gcuspectrumviewer.h.

Typedef Documentation

typedef struct _GcuSpectrumViewer GcuSpectrumViewer

The GcuSpectrumViewer widget.

Definition at line 69 of file gcuspectrumviewer.h.

typedef struct _GcuSpectrumViewerClass GcuSpectrumViewerClass

The GcuSpectrumViewer widget object class.

Definition at line 71 of file gcuspectrumviewer.h.

Function Documentation

GogGraph* gcu_spectrum_viewer_get_graph ( GcuSpectrumViewer viewer)
Parameters
viewera pointer to GcuSectrumViewer widget.
Returns
the graph displayed by the widget.
GtkWidget* gcu_spectrum_viewer_new ( const gchar *  uri)
Parameters
urithe URI of the file containing the spectrum to display

Creates a GcuSpectrumViewer widget and fills it with the data from uri. If uri is NULL, the widget will display an empty chart.

void gcu_spectrum_viewer_set_uri ( GcuSpectrumViewer viewer,
const gchar *  uri 
)
Parameters
viewera pointer to GcuSectrumViewer widget.
urithe URI of the file containing the spectrum to display.

Changes the molecule displayed by the one described in the uri. Nothing happens if uri is NULL.