<!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: testgtkchem3dviewer.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.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><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 class="tabs"> <ul> <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 class="navpath"><a class="el" href="dir_a5207d54ba149829d5dbe5e6d0e40700.html">tests</a> </div> </div> <div class="contents"> <h1>testgtkchem3dviewer.c File Reference</h1><code>#include "config.h"</code><br/> <code>#include <<a class="el" href="chemistry_8h_source.html">gcu/chemistry.h</a>></code><br/> <code>#include <<a class="el" href="gtkchem3dviewer_8h_source.html">gcu/gtkchem3dviewer.h</a>></code><br/> <code>#include <glib.h></code><br/> <code>#include <gtk/gtk.h></code><br/> <code>#include <stdio.h></code><br/> <p><a href="testgtkchem3dviewer_8c_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="testgtkchem3dviewer_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>A simple sample of the use of the <a class="el" href="structGtkChem3DViewer.html">GtkChem3DViewer</a> widget. </p> <p>Definition in file <a class="el" href="testgtkchem3dviewer_8c_source.html">testgtkchem3dviewer.c</a>.</p> <hr/><h2>Function Documentation</h2> <a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a><!-- doxytag: member="testgtkchem3dviewer.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><td> </td> </tr> <tr> <td></td> <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 Gt and GnomeVFS;</li> <li>loads atomic radii (the 3D viewer needs the van der Waals radii).</li> <li>build the widow embedding the sample <a class="el" href="structGtkChem3DViewer.html">GtkChem3DViewer</a>.</li> <li>build the <a class="el" href="structGtkChem3DViewer.html">GtkChem3DViewer</a> 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="testgtkchem3dviewer_8c_source.html#l00046">46</a> of file <a class="el" href="testgtkchem3dviewer_8c_source.html">testgtkchem3dviewer.c</a>.</p> <p>References <a class="el" href="chemistry_8h.html#aabec300016d5a3d7a3b5574ff3ce9a37">gcu_element_load_databases()</a>, and <a class="el" href="gtkchem3dviewer_8h.html#a74386a37e06a34bbc2e1478924e9edcd">gtk_chem3d_viewer_new()</a>.</p> </div> </div> </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>