<html> <head><title>ClanLib Reference: CL_ClanApplication</title></head> <body text=black link=blue vlink=#800080 bgcolor=white topmargin=0 leftmargin=0> <table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td><img border=0 src="../images/eyeheader-main-purple-a.gif" alt="ClanSoft logo" width=525 height=96></td></tr> <tr bgcolor=#dadada><td align=left valign=top><img border=0 src="../images/eyeheader-main-purple-b.gif" alt="ClanSoft logo" width=190 height=14></td><td align=right valign=top><img border=0 src="../images/clanlib_light.gif" width=42 height=14></td></tr></table> <table align=center border=0 cellspacing=10> <tr> <td><a href="entire_class_index.html">Entire Class Index</a></td> <td><a href="class_index.html">Main Class Index</a></td> <td><a href="cross_index.html">Cross Index</a></td> <td><a href="global_index.html">Global Index</a></td> </table><h1 align=center>Class CL_ClanApplication</h1><p> <b> The starting place for all applications.</b><br> Contained in: <a href="global_index.html">global</a><br> Derived from: <i>none</i> <br> Derived by: <i>none</i> <br>Group: App (System) <p> #include <ClanLib/application.h> <p> <hr noshade> <table border=0> <tr><td colspan=3><h3>public function member index:</h3></td> <tr valign=top><td align=left><h3>Construction:</h3></td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_ClanApplication.html#2949"><tt><font color=blue><b>CL_ClanApplication</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="CL_ClanApplication.html#2950"><tt><font color=blue><b>~CL_ClanApplication</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=left><h3>Overrideables:</h3></td> <tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_ClanApplication.html#2951"><tt><font color=blue><b>main</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>argc</font></tt>, <tt><font color=purple>char</font></tt>** <tt><font color=blue>argv</font></tt>)</tt>;</td> <tr valign=top><td align=left><h3>Attributes:</h3></td> <tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>char</font></tt>*</tt> </td><td align=right><a href="CL_ClanApplication.html#2952"><tt><font color=blue><b>get_title</b></font></tt></a></td><td><tt>()</tt>;</td> <tr><td> </td></table> <hr noshade> <h2>Description:</h2> The application class must be inherited by all ClanLib applications.<br> In your application create a class inheriting <a href="CL_ClanApplication.html">CL_ClanApplication</a>, make a global instance of it, and fill in the main() and get_title() functions.<br><p> <hr noshade> <h2>Function Member Descriptions:</h2> <a name="2949"><font size=+1><b>CL_ClanApplication::CL_ClanApplication</b></font></a> - Clan Application constructor<br><tt></tt> <a href="CL_ClanApplication.html#2949"><tt><font color=blue><b>CL_ClanApplication</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="2952"><font size=+1><b>CL_ClanApplication::get_title</b></font></a> - Get application (window) title<br><tt><tt>virtual</tt> <tt><font color=purple>char</font></tt>*</tt> <a href="CL_ClanApplication.html#2952"><tt><font color=blue><b>get_title</b></font></tt></a><tt>()</tt>;<br><blockquote> returns - A character string to be put as the application (window) title (when appropriate, ie. not fullscreen, etc)</blockquote> <hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="2951"><font size=+1><b>CL_ClanApplication::main</b></font></a> - Every program made using ClanLib must implement this function. <br> This is the main application function, which will be called _once_ following system initialization.<br><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> <a href="CL_ClanApplication.html#2951"><tt><font color=blue><b>main</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>argc</font></tt>, <tt><font color=purple>char</font></tt>** <tt><font color=blue>argv</font></tt>)</tt>;<br><blockquote> argc - The number of arguments to the program (c-style)<br> argv - A pointer to strings, containing the program arguments. The name of the program executable is always passed as first argument.<br> returns - Program return value</blockquote> <hr size="1" width="70%" align="left" noshade="noshade"><br><br> <a name="2950"><font size=+1><b>CL_ClanApplication::~CL_ClanApplication</b></font></a> - Clan Application destructor<br><tt><tt>virtual</tt> </tt> <a href="CL_ClanApplication.html#2950"><tt><font color=blue><b>~CL_ClanApplication</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br> <hr noshade> <h2>Variable Member Descriptions:</h2> <a name="2953"><font size=+1><b>CL_ClanApplication::app</b></font></a> - Static pointer to an initialized instance of this class. This is set by the constructor.<br> <tt><tt>static</tt> <a href="CL_ClanApplication.html#2949"><tt><font color=blue><b>CL_ClanApplication</b></font></tt></a> *</tt> <tt><a href="CL_ClanApplication.html#2953"><tt><font color=blue>app</font></tt></a>;</tt><hr size="1" width="70%" align="left" noshade="noshade"><br> <hr noshade> </body> </html>