<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>The Gnome Chemistry Utils: GtkPeriodic Struct Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>GtkPeriodic Struct Reference</h1><!-- doxytag: class="GtkPeriodic" --> <p><code>#include <<a class="el" href="gtkperiodic_8h_source.html">gcu/gtkperiodic.h</a>></code></p> <table border="0" cellpadding="0" cellspacing="0"> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>The <a class="el" href="structGtkPeriodic.html">GtkPeriodic</a> 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 <a class="el" href="testgtkperiodic_8c.html">testgtkperiodic.c</a>). <hr/> <h2>Signals</h2> <p>This widget has one signal:</p> <ul> <li>"element-changed": void user_function (GtkWidget* periodic, guint Z, gpointer data). <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>periodic,:</em> </td><td>the object which received the signal. </td></tr> <tr><td valign="top"></td><td valign="top"><em>Z,:</em> </td><td>the atomic number of the newly selected element or 0 if no element is selected. </td></tr> <tr><td valign="top"></td><td valign="top"><em>data,:</em> </td><td>user data set when the signal handler was connected.</td></tr> </table> </dd> </dl> This signal is raised when the selected element changes in the widget.</li> </ul> <hr/> <h2>Properties</h2> <p>There are two properties:</p> <ul> <li>"can_unselect": gboolean (Read / Write). <br/> 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.</li> </ul> <ul> <li>"color-style": GtkPeriodicColorStyle (Read / Write). <br/> This property is used to set the coloring scheme used for the buttons when displaying the periodic table. There are two predefined values:<ul> <li>GTK_PERIODIC_COLOR_NONE: the default Gtk theme is used.</li> <li>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 <a class="el" href="gtkperiodic_8h.html#ac919ffad7e8ba5d497651faf98908601">gtk_periodic_add_color_scheme()</a>. Default value is GTK_PERIODIC_COLOR_NONE.</li> </ul> </li> </ul> <hr/> <h2>Functions</h2> <p>Functions related to the <a class="el" href="structGtkPeriodic.html">GtkPeriodic</a> Widget are described in the <a class="el" href="gtkperiodic_8h.html">gtkperiodic.h</a> page. </p> <hr/>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="gtkperiodic_8h_source.html">gtkperiodic.h</a></li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 6 18:33:53 2009 for The Gnome Chemistry Utils by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>