<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>The Gnome Chemistry Utils: GcuPeriodic Struct Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">The Gnome Chemistry Utils  <span id="projectnumber">0.14.2</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1.2 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <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> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <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><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">GcuPeriodic Struct Reference</div> </div> </div><!--header--> <div class="contents"> <p><code>#include <<a class="el" href="gcuperiodic_8h_source.html">gcugtk/gcuperiodic.h</a>></code></p> <a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>The <a class="el" href="structGcuPeriodic.html">GcuPeriodic</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="testgcuperiodic_8c.html">testgcuperiodic.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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">periodic,:</td><td>the object which received the signal. </td></tr> <tr><td class="paramname">Z,:</td><td>the atomic number of the newly selected element or 0 if no element is selected. </td></tr> <tr><td class="paramname">data,:</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": GcuPeriodicColorStyle (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>GCU_PERIODIC_COLOR_NONE: the default Gtk theme is used.</li> <li>GCU_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="gcuperiodic_8h.html#af68fdbf8b352eb700c47d85fd6ed89db">gcu_periodic_add_color_scheme()</a>. Default value is GCU_PERIODIC_COLOR_NONE.</li> </ul> </li> </ul> <hr/> <h2>Functions</h2> <p>Functions related to the <a class="el" href="structGcuPeriodic.html">GcuPeriodic</a> Widget are described in the <a class="el" href="gcuperiodic_8h.html">gcuperiodic.h</a> page. </p> </div><hr/>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="gcuperiodic_8h_source.html">gcuperiodic.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Thu Mar 14 2013 17:34:29 for The Gnome Chemistry Utils by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1.2 </small></address> </body> </html>