The Gnome Chemistry Utils  0.14.0
Macros | Typedefs | Functions
gcucomboperiodic.h File Reference
#include <glib-object.h>

Go to the source code of this file.

Macros

#define GCU_TYPE_COMBO_PERIODIC   (gcu_combo_periodic_get_type ())
#define GCU_COMBO_PERIODIC(o)   (G_TYPE_CHECK_INSTANCE_CAST((o), GCU_TYPE_COMBO_PERIODIC, GcuComboPeriodic))
#define GCU_IS_COMBO_PERIODIC(o)   (G_TYPE_CHECK_INSTANCE_TYPE((o), GCU_TYPE_COMBO_PERIODIC))

Typedefs

typedef struct _GcuComboPeriodic GcuComboPeriodic

Functions

GtkWidget * gcu_combo_periodic_new (void)
guint gcu_combo_periodic_get_element (GcuComboPeriodic *combo)
void gcu_combo_periodic_set_element (GcuComboPeriodic *combo, guint element)

Detailed Description

Declaration of the GcuComboPeriodic widget.

Definition in file gcucomboperiodic.h.

Macro Definition Documentation

#define GCU_COMBO_PERIODIC (   o)    (G_TYPE_CHECK_INSTANCE_CAST((o), GCU_TYPE_COMBO_PERIODIC, GcuComboPeriodic))

Casts obj to a GcuComboPeriodic * pointer.

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

Definition at line 37 of file gcucomboperiodic.h.

#define GCU_IS_COMBO_PERIODIC (   o)    (G_TYPE_CHECK_INSTANCE_TYPE((o), GCU_TYPE_COMBO_PERIODIC))
Returns
TRUE if obj points to a GcuComboPeriodic widget, FALSE otherwise.

Definition at line 41 of file gcucomboperiodic.h.

#define GCU_TYPE_COMBO_PERIODIC   (gcu_combo_periodic_get_type ())
Returns
the GType associated to GcuComboPeriodic

Definition at line 31 of file gcucomboperiodic.h.

Typedef Documentation

typedef struct _GcuComboPeriodic GcuComboPeriodic

The GcuComboPeriodic widget.

Definition at line 66 of file gcucomboperiodic.h.

Function Documentation

guint gcu_combo_periodic_get_element ( GcuComboPeriodic combo)
Parameters
comboa GcuComboPeriodic widget Used to get the currently selected element in the periodic table.
Returns
the atomic number of the currently selected element or %0 if none is selected.

Definition at line 121 of file gcucomboperiodic.c.

References GCU_PERIODIC.

GtkWidget* gcu_combo_periodic_new ( void  )
Returns
a pointer to a newly created GcuComboPeriodic widget.
void gcu_combo_periodic_set_element ( GcuComboPeriodic combo,
guint  element 
)
Parameters
comboa GcuComboPeriodic widget
elementthe atomic number of the element to select or 0 Sets the selected element in the periodic table.

Definition at line 126 of file gcucomboperiodic.c.

References gcu_element_get_symbol(), and GCU_PERIODIC.