The Gnome Chemistry Utils: GtkPeriodic Struct Reference

- Main Page
- Namespaces
- Classes
- Files
- Directories

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# 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. Default value is FALSE.

- "color-style": GtkPeriodicColorStyle (Read / Write).
  This property is used to set the coloring scheme used for the buttons when displaying the periodic table. There are two predefined values:
  - 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. Other values can be added using gtk_periodic_add_color_scheme(). Default value is GTK_PERIODIC_COLOR_NONE.

## 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:

- gtkperiodic.h