<!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: testgcuchem3dviewer.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 <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 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 List</span></a></li> <li><a href="globals.html"><span>File 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">testgcuchem3dviewer.c File Reference</div> </div> </div> <div class="contents"> <div class="textblock"><code>#include "config.h"</code><br/> <code>#include <<a class="el" href="chemistry_8h_source.html">gcu/chemistry.h</a>></code><br/> <code>#include <gcugtk/gcuchem3dviewer.h></code><br/> <code>#include <glib.h></code><br/> <code>#include <gtk/gtk.h></code><br/> <code>#include <stdio.h></code><br/> </div> <p><a href="testgcuchem3dviewer_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">int </td><td class="memItemRight" valign="bottom"><a class="el" href="testgcuchem3dviewer_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 sample of the use of the GcuChem3DViewer widget. </p> <p>Definition in file <a class="el" href="testgcuchem3dviewer_8c_source.html">testgcuchem3dviewer.c</a>.</p> </div><hr/><h2>Function Documentation</h2> <a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a><!-- doxytag: member="testgcuchem3dviewer.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 </td> <td class="paramname"><em>argc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"><em>argv</em>[] </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p><em>main</em> function of the test program. It fulfills the following operations, in order:</p> <ul> <li>initialize Gtk;</li> <li>loads atomic radii (the 3D viewer needs the van der Waals radii).</li> <li>build the window embedding the sample GcuChem3DViewer.</li> <li>build the GcuChem3DViewer with either a file from the command line or the default methane.xyz provided with the sources.</li> <li>shows everything and enter <em>gtk_main()</em>. </li> </ul> <p>Definition at line <a class="el" href="testgcuchem3dviewer_8c_source.html#l00043">43</a> of file <a class="el" href="testgcuchem3dviewer_8c_source.html">testgcuchem3dviewer.c</a>.</p> <p>References <a class="el" href="chemistry_8h.html#aabec300016d5a3d7a3b5574ff3ce9a37">gcu_element_load_databases()</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  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> </body> </html>