GtkPeriodic Struct Reference
#include <gcu/gtkperiodic.h>
Detailed Description
The GtkPeriodic Widget displays a Periodic table of the elements, each element being represented in a toggle button. A test program is available in the tests directory of the Gnome Chemistry Utils source archive (source in testgtkperiodic.c).
Signals
This widget has one signal:
- "element-changed": void user_function (GtkWidget* periodic, guint Z, gpointer data).
- Parameters:
-
| periodic,: | the object which received the signal. |
| Z,: | the atomic number of the newly selected element or 0 if no element is selected. |
| data,: | user data set when the signal handler was connected. |
This signal is raised when the selected element changes in the widget.
Properties
There are two properties:
- "can_unselect": gboolean (Read / Write).
When this property is set to TRUE, you can unselect the selected element by clicking on the active button, otherwise an element will always be selected.
- "color-style": GtkPeriodicColorStyle (Read / Write).
This property is used to set the coloring scheme used for the buttons when displaying the periodic table. Two values are allowed:
- GTK_PERIODIC_COLOR_NONE: the default Gtk theme is used.
- GTK_PERIODIC_COLOR_DEFAULT: the default color for each element is used as returned by gcu_element_get_default_color.
Functions
Functions related to the GtkPeriodic Widget are described in the gtkperiodic.h page.
The documentation for this struct was generated from the following file:
Generated on Tue Aug 15 10:47:36 2006 for The Gnome Chemistry Utils by
1.4.7