Sophie

Sophie

distrib > Mageia > 3 > x86_64 > by-pkgid > d2855e9970bf9a8259f08fe181d69f9d > files > 927

gnome-chemistry-utils-devel-0.14.2-1.mga3.x86_64.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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>The Gnome Chemistry Utils: testgcuperiodic.c File 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
   &#160;<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&#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>
    </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_59425e443f801f1f2fd8bbe4959a3ccf.html">tests</a></li>  </ul>
</div>
</div><!-- top -->
<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><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="gcuperiodic_8h_source.html">gcugtk/gcuperiodic.h</a>&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 class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a6025c92526c4b7256b3aa407a62ac4f8"><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 <a class="el" href="structGcuPeriodic.html">GcuPeriodic</a> *periodic, guint Z, G_GNUC_UNUSED gpointer data)</td></tr>
<tr class="memitem:a2e29078eab76ce98cb675ba6f46fb610"><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 class="memitem:aed17a36de6a4b02ca5be707ba9590f8a"><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 class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><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>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A simple example of the use of the <a class="el" href="structGcuPeriodic.html">GcuPeriodic</a> widget. </p>

<p>Definition in file <a class="el" href="testgcuperiodic_8c_source.html">testgcuperiodic.c</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a>
<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 <a class="el" href="structGcuPeriodic.html">GcuPeriodic</a> 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="gcuperiodic_8h_source.html#l00073">GCU_PERIODIC</a>, <a class="el" href="gcuperiodic_8h.html#aa6d9628e6de9c6fde4734e845872d07d">gcu_periodic_new()</a>, <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>
<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 <a class="el" href="structGcuPeriodic.html">GcuPeriodic</a> *&#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>
<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>
<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><!-- 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 &#160;<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>