zengine-gewi/doc/html/GewiEngine_8h-source.html
2003-06-16 07:27:48 +00:00

94 lines
7.2 KiB
HTML
Executable File

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>/include/GewiEngine.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center>
<hr><h1>/include/GewiEngine.h</h1><a href="GewiEngine_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*******************************************************************************</span>
00002 <span class="comment"> This file is Part of the Gewi GUI Library for ZEngine.</span>
00003 <span class="comment"> Gewi and ZEngine Copyright (C) 2002, 2003 James Turk</span>
00004 <span class="comment"></span>
00005 <span class="comment"> Licensed under a BSD-style license. (see licensing.txt)</span>
00006 <span class="comment"></span>
00007 <span class="comment"> The maintainer of this library is James Turk (james@conceptofzero.net) </span>
00008 <span class="comment"> this library is found at the home of ZEngine http://zengine.sourceforge.net</span>
00009 <span class="comment">*******************************************************************************/</span>
00010
00020 <span class="preprocessor">#ifndef __gewiengine_h__</span>
00021 <span class="preprocessor"></span><span class="preprocessor">#define __gewiengine_h__</span>
00022 <span class="preprocessor"></span>
00023 <span class="preprocessor">#include "<a class="code" href="GewiIncludes_8h.html">GewiIncludes.h</a>"</span>
00024 <span class="preprocessor">#include "<a class="code" href="GewiWidgetList_8h.html">GewiWidgetList.h</a>"</span>
00025
00026
00032 <span class="keyword">namespace </span>Gewi
00033 {
00034
00035
<a name="l00042"></a><a class="code" href="classGewi_1_1GewiEngine.html">00042</a> <span class="keyword">class </span><a class="code" href="classGewi_1_1GewiEngine.html">GewiEngine</a>
00043 {
00044 <span class="keyword">public</span>:
00046 <span class="keyword">static</span> VersionInfo <a class="code" href="classGewi_1_1GewiEngine.html#p0">Version</a>;
00048 <span class="keyword">static</span> VersionInfo <a class="code" href="classGewi_1_1GewiEngine.html#p1">MinZEVersion</a>;
00049
00050 <span class="keyword">private</span>:
00052 <span class="keyword">static</span> <a class="code" href="classGewi_1_1GewiEngine.html">GewiEngine</a> *<a class="code" href="classGewi_1_1GewiEngine.html#r0">sInstance</a>;
<a name="l00054"></a><a class="code" href="classGewi_1_1GewiEngine.html#o0">00054</a> std::vector&lt;ZE::ZImage*&gt; <a class="code" href="classGewi_1_1GewiEngine.html#o0">mImageVec</a>;
<a name="l00056"></a><a class="code" href="classGewi_1_1GewiEngine.html#o1">00056</a> std::vector&lt;ZE::ZFont*&gt; <a class="code" href="classGewi_1_1GewiEngine.html#o1">mFontVec</a>;
<a name="l00058"></a><a class="code" href="classGewi_1_1GewiEngine.html#o2">00058</a> <a class="code" href="classGewi_1_1WidgetList.html">WidgetList</a> <a class="code" href="classGewi_1_1GewiEngine.html#o2">mWidgetList</a>;
00059
00060 <span class="comment">//singleton setup//</span>
00061 <span class="keyword">private</span>:
00067 <a class="code" href="classGewi_1_1GewiEngine.html#c0">GewiEngine</a>();
00068
00069 <span class="keyword">public</span>:
<a name="l00071"></a><a class="code" href="classGewi_1_1GewiEngine.html#p2">00071</a> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="namespaceGewi.html#a2">ResourceID</a> <a class="code" href="classGewi_1_1GewiEngine.html#p2">InvalidID</a> = UINT_MAX; <span class="comment">//UINT_MAX b/c many compilers don't like numeric_limits</span>
00072
00080 <span class="keyword">static</span> <a class="code" href="classGewi_1_1GewiEngine.html">GewiEngine</a>* <a class="code" href="classGewi_1_1GewiEngine.html#d0">GetInstance</a>();
00081
00087 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GewiEngine.html#d1">ReleaseInstance</a>();
00088
00089 <span class="comment">//utilities//</span>
00090
00098 <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classGewi_1_1GewiEngine.html#d2">EventFilter</a>(SDL_Event *event);
00099
00107 <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="classGewi_1_1GewiEngine.html#d3">TranslateKey</a>(SDL_keysym key);
00108
00114 <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GewiEngine.html#a0">Display</a>();
00115
00116 <span class="comment">//resource management//</span>
00117
00125 <a class="code" href="namespaceGewi.html#a2">ResourceID</a> <a class="code" href="classGewi_1_1GewiEngine.html#a1">AddResource</a>(ZE::ZImage *image);
00126
00134 <a class="code" href="namespaceGewi.html#a2">ResourceID</a> <a class="code" href="classGewi_1_1GewiEngine.html#a1">AddResource</a>(ZE::ZFont *font);
00135
00143 ZE::ZImage* <a class="code" href="classGewi_1_1GewiEngine.html#a3">Image</a>(ResourceID id);
00144
00152 ZE::ZFont* <a class="code" href="classGewi_1_1GewiEngine.html#a4">Font</a>(ResourceID id);
00153
00159 <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GewiEngine.html#a5">FreeResources</a>();
00160
00161 <span class="comment">//widget management//</span>
00162 <span class="keyword">private</span>:
00169 <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GewiEngine.html#c1">InsertWidget</a>(<a class="code" href="classGewi_1_1WidgetNode.html">WidgetNode</a> *node);
00170
00171 <span class="keyword">public</span>:
00178 <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GewiEngine.html#a6">Register</a>(<a class="code" href="classGewi_1_1GWidget.html">GWidget</a> *widget);
00179
00192 <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GewiEngine.html#a7">SendMessage</a>(SDL_Event *rawEvent, GewiEvent event, Uint16 mouseX, Uint16 mouseY, <span class="keywordtype">char</span> ch);
00193
00200 <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GewiEngine.html#a8">DeleteWidget</a>(<a class="code" href="classGewi_1_1GWidget.html">GWidget</a> *widget);
00201 };
00202
00203 }
00204
00205 <span class="preprocessor">#endif //__gewiengine_h__</span>
</pre></div><hr><address style="align: right;"><small>Generated on Mon Jun 16 03:27:18 2003 for Gewi by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.3 </small></address>
</body>
</html>