Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > 006f25f0acc4b3df764eea70a130a63f > files > 695

gnome-chemistry-utils-devel-0.13.5-4.mga2.i586.rpm

<!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: testgcuperiodic.c File 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.7.4 -->
<div id="top">
<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&#160;<span id="projectnumber">0.13.5</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="dir_56e7ad8c3419b1751f957adcf4365adc.html">tests</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">testgcuperiodic.c File Reference</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &lt;gcugtk/gcuperiodic.h&gt;</code><br/>
<code>#include &lt;<a class="el" href="chemistry_8h_source.html">gcu/chemistry.h</a>&gt;</code><br/>
<code>#include &lt;glib.h&gt;</code><br/>
<code>#include &lt;gtk/gtk.h&gt;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
</div>
<p><a href="testgcuperiodic_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testgcuperiodic_8c.html#a6025c92526c4b7256b3aa407a62ac4f8">on_changed</a> (G_GNUC_UNUSED GcuPeriodic *periodic, guint Z, G_GNUC_UNUSED gpointer data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testgcuperiodic_8c.html#a2e29078eab76ce98cb675ba6f46fb610">on_color_scheme_none</a> (GtkToggleButton *btn, GtkWidget *periodic)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testgcuperiodic_8c.html#aed17a36de6a4b02ca5be707ba9590f8a">on_color_scheme_default</a> (GtkToggleButton *btn, GtkWidget *periodic)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testgcuperiodic_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A simple example of the use of the GcuPeriodic widget. </p>

<p>Definition in file <a class="el" href="testgcuperiodic_8c_source.html">testgcuperiodic.c</a>.</p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a><!-- doxytag: member="testgcuperiodic.c::main" ref="a0ddf1224851353fc92bfbff6f499fa97" args="(int argc, char *argv[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>argv</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The <em>main</em> function of the test program. It builds the window containing the GcuPeriodic widget, adds some buttons and installs the appropriate signals. </p>

<p>Definition at line <a class="el" href="testgcuperiodic_8c_source.html#l00066">66</a> of file <a class="el" href="testgcuperiodic_8c_source.html">testgcuperiodic.c</a>.</p>

<p>References <a class="el" href="testgcuperiodic_8c_source.html#l00037">on_changed()</a>, <a class="el" href="testgcuperiodic_8c_source.html#l00056">on_color_scheme_default()</a>, and <a class="el" href="testgcuperiodic_8c_source.html#l00046">on_color_scheme_none()</a>.</p>

</div>
</div>
<a class="anchor" id="a6025c92526c4b7256b3aa407a62ac4f8"></a><!-- doxytag: member="testgcuperiodic.c::on_changed" ref="a6025c92526c4b7256b3aa407a62ac4f8" args="(G_GNUC_UNUSED GcuPeriodic *periodic, guint Z, G_GNUC_UNUSED gpointer data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void on_changed </td>
          <td>(</td>
          <td class="paramtype">G_GNUC_UNUSED GcuPeriodic *&#160;</td>
          <td class="paramname"><em>periodic</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"><em>Z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">G_GNUC_UNUSED gpointer&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The function called when the selected element changes. It just prints the atomic number of the selected element to the standard output. </p>

<p>Definition at line <a class="el" href="testgcuperiodic_8c_source.html#l00037">37</a> of file <a class="el" href="testgcuperiodic_8c_source.html">testgcuperiodic.c</a>.</p>

<p>Referenced by <a class="el" href="testgcuperiodic_8c_source.html#l00066">main()</a>.</p>

</div>
</div>
<a class="anchor" id="aed17a36de6a4b02ca5be707ba9590f8a"></a><!-- doxytag: member="testgcuperiodic.c::on_color_scheme_default" ref="aed17a36de6a4b02ca5be707ba9590f8a" args="(GtkToggleButton *btn, GtkWidget *periodic)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void on_color_scheme_default </td>
          <td>(</td>
          <td class="paramtype">GtkToggleButton *&#160;</td>
          <td class="paramname"><em>btn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>periodic</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The function called when the "Default" button. It Just sets the "color-scheme" property of the GtkPeridic widget to GCU_PERIODIC_COLOR_DEFAULT if the button is active. </p>

<p>Definition at line <a class="el" href="testgcuperiodic_8c_source.html#l00056">56</a> of file <a class="el" href="testgcuperiodic_8c_source.html">testgcuperiodic.c</a>.</p>

<p>Referenced by <a class="el" href="testgcuperiodic_8c_source.html#l00066">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a2e29078eab76ce98cb675ba6f46fb610"></a><!-- doxytag: member="testgcuperiodic.c::on_color_scheme_none" ref="a2e29078eab76ce98cb675ba6f46fb610" args="(GtkToggleButton *btn, GtkWidget *periodic)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void on_color_scheme_none </td>
          <td>(</td>
          <td class="paramtype">GtkToggleButton *&#160;</td>
          <td class="paramname"><em>btn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>periodic</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The function called when the "None" button. It Just sets the "color-scheme" property of the GtkPeridic widget to GCU_PERIODIC_COLOR_NONE if the button is active. </p>

<p>Definition at line <a class="el" href="testgcuperiodic_8c_source.html#l00046">46</a> of file <a class="el" href="testgcuperiodic_8c_source.html">testgcuperiodic.c</a>.</p>

<p>Referenced by <a class="el" href="testgcuperiodic_8c_source.html#l00066">main()</a>.</p>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Fri Nov 11 2011 18:01:05 for The Gnome Chemistry Utils by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>