331 lines
14 KiB
HTML
331 lines
14 KiB
HTML
|
<!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>Gewi::WidgetList class Reference</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> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> </center>
|
||
|
<hr><h1>Gewi::WidgetList Class Reference</h1><code>#include <<a class="el" href="GewiWidgetList_8h-source.html">GewiWidgetList.h</a>></code>
|
||
|
<p>
|
||
|
<a href="classGewi_1_1WidgetList-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
|
||
|
Linked list of widgets, and various utility functions for containers. Class is internally used only, <a class="el" href="classGewi_1_1GContainer.html">GContainer</a> and <a class="el" href="classGewi_1_1GewiEngine.html">GewiEngine</a> heavily rely on it.
|
||
|
<p>
|
||
|
<table border=0 cellpadding=0 cellspacing=0>
|
||
|
<tr><td></td></tr>
|
||
|
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
|
||
|
<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classGewi_1_1WidgetList.html#a0">WidgetList</a> ()</td></tr>
|
||
|
<tr><td> </td><td><em class="mdesc">Constructor for the linked list.</em> <a href="#a0"></a><em></em><br><br></td></tr>
|
||
|
<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGewi_1_1WidgetList.html#a1">AddWidget</a> (<a class="el" href="classGewi_1_1WidgetNode.html">WidgetNode</a> *node)</td></tr>
|
||
|
<tr><td> </td><td><em class="mdesc">Add a <a class="el" href="classGewi_1_1WidgetNode.html">WidgetNode</a> to the list.</em> <a href="#a1"></a><em></em><br><br></td></tr>
|
||
|
<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGewi_1_1WidgetList.html#a2">DeleteWidget</a> (<a class="el" href="classGewi_1_1GWidget.html">GWidget</a> *widget)</td></tr>
|
||
|
<tr><td> </td><td><em class="mdesc">Delete a widget.</em> <a href="#a2"></a><em></em><br><br></td></tr>
|
||
|
<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGewi_1_1WidgetList.html#a3">DeleteWidgets</a> ()</td></tr>
|
||
|
<tr><td> </td><td><em class="mdesc">Delete all widgets.</em> <a href="#a3"></a><em></em><br><br></td></tr>
|
||
|
<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGewi_1_1WidgetList.html#a4">Message</a> (SDL_Event *rawEvent, <a class="el" href="namespaceGewi.html#a18">GewiEvent</a> event, Uint16 mouseX, Uint16 mouseY, char ch)</td></tr>
|
||
|
<tr><td> </td><td><em class="mdesc">Intercepts a message to process.</em> <a href="#a4"></a><em></em><br><br></td></tr>
|
||
|
<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGewi_1_1WidgetList.html#a5">FitParent</a> ()</td></tr>
|
||
|
<tr><td> </td><td><em class="mdesc">Fit all widgets to the parent.</em> <a href="#a5"></a><em></em><br><br></td></tr>
|
||
|
<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGewi_1_1WidgetList.html#a6">ShowWidgets</a> ()</td></tr>
|
||
|
<tr><td> </td><td><em class="mdesc">Show widgets.</em> <a href="#a6"></a><em></em><br><br></td></tr>
|
||
|
<tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr>
|
||
|
<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGewi_1_1WidgetList.html#c0">DeleteWidgetMem</a> (<a class="el" href="classGewi_1_1WidgetNode.html">WidgetNode</a> *node)</td></tr>
|
||
|
<tr><td> </td><td><em class="mdesc">Internal function to delete widget memory.</em> <a href="#c0"></a><em></em><br><br></td></tr>
|
||
|
<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
|
||
|
<tr><td nowrap align=right valign=top><a name="o0" doxytag="Gewi::WidgetList::mWidgetList"></a>
|
||
|
<a class="el" href="classGewi_1_1WidgetNode.html">WidgetNode</a> * </td><td valign=bottom><a class="el" href="classGewi_1_1WidgetList.html#o0">mWidgetList</a></td></tr>
|
||
|
<tr><td> </td><td><em class="mdesc">Pointer to head of list.</em><br><br></td></tr>
|
||
|
<tr><td nowrap align=right valign=top><a name="o1" doxytag="Gewi::WidgetList::mClick"></a>
|
||
|
<a class="el" href="classGewi_1_1WidgetNode.html">WidgetNode</a> * </td><td valign=bottom><a class="el" href="classGewi_1_1WidgetList.html#o1">mClick</a></td></tr>
|
||
|
<tr><td> </td><td><em class="mdesc">Variable keeping track of where the last click was, to change focus.</em><br><br></td></tr>
|
||
|
</table>
|
||
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
||
|
<a name="a0" doxytag="Gewi::WidgetList::WidgetList"></a><p>
|
||
|
<table width="100%" cellpadding="2" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top"> Gewi::WidgetList::WidgetList </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap></td>
|
||
|
</tr>
|
||
|
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing=5 cellpadding=0 border=0>
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Simply NULLs pointers for the linked list. </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<hr><h2>Member Function Documentation</h2>
|
||
|
<a name="c0" doxytag="Gewi::WidgetList::DeleteWidgetMem"></a><p>
|
||
|
<table width="100%" cellpadding="2" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top"> void Gewi::WidgetList::DeleteWidgetMem </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="md" nowrap valign="top"><a class="el" href="classGewi_1_1WidgetNode.html">WidgetNode</a> * </td>
|
||
|
<td class="mdname1" valign="top" nowrap> <em>node</em> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap><code> [private]</code></td>
|
||
|
</tr>
|
||
|
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing=5 cellpadding=0 border=0>
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Deletes the memory used by a widget node, interally used. <dl compact><dt><b>Parameters:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign=top><em>node</em> </td><td>Node to delete. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a name="a1" doxytag="Gewi::WidgetList::AddWidget"></a><p>
|
||
|
<table width="100%" cellpadding="2" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top"> void Gewi::WidgetList::AddWidget </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="md" nowrap valign="top"><a class="el" href="classGewi_1_1WidgetNode.html">WidgetNode</a> * </td>
|
||
|
<td class="mdname1" valign="top" nowrap> <em>node</em> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap></td>
|
||
|
</tr>
|
||
|
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing=5 cellpadding=0 border=0>
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Adds a <a class="el" href="classGewi_1_1WidgetNode.html">WidgetNode</a> to the list, in the 'front'. <dl compact><dt><b>Parameters:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign=top><em>node</em> </td><td>Node to add to list. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a name="a2" doxytag="Gewi::WidgetList::DeleteWidget"></a><p>
|
||
|
<table width="100%" cellpadding="2" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top"> void Gewi::WidgetList::DeleteWidget </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="md" nowrap valign="top"><a class="el" href="classGewi_1_1GWidget.html">GWidget</a> * </td>
|
||
|
<td class="mdname1" valign="top" nowrap> <em>widget</em> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap></td>
|
||
|
</tr>
|
||
|
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing=5 cellpadding=0 border=0>
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Deletes a widget, it's memory and frees it from it's container or <a class="el" href="classGewi_1_1GewiEngine.html">GewiEngine</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign=top><em>widget</em> </td><td>Widget to delete. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a name="a3" doxytag="Gewi::WidgetList::DeleteWidgets"></a><p>
|
||
|
<table width="100%" cellpadding="2" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top"> void Gewi::WidgetList::DeleteWidgets </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap></td>
|
||
|
</tr>
|
||
|
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing=5 cellpadding=0 border=0>
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Deletes all widgets and their memory. </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a name="a4" doxytag="Gewi::WidgetList::Message"></a><p>
|
||
|
<table width="100%" cellpadding="2" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top"> void Gewi::WidgetList::Message </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="md" nowrap valign="top">SDL_Event * </td>
|
||
|
<td class="mdname" nowrap> <em>rawEvent</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td></td>
|
||
|
<td class="md" nowrap><a class="el" href="namespaceGewi.html#a18">GewiEvent</a> </td>
|
||
|
<td class="mdname" nowrap> <em>event</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td></td>
|
||
|
<td class="md" nowrap>Uint16 </td>
|
||
|
<td class="mdname" nowrap> <em>mouseX</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td></td>
|
||
|
<td class="md" nowrap>Uint16 </td>
|
||
|
<td class="mdname" nowrap> <em>mouseY</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td></td>
|
||
|
<td class="md" nowrap>char </td>
|
||
|
<td class="mdname" nowrap> <em>ch</em></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td class="md">) </td>
|
||
|
<td class="md" colspan="2"></td>
|
||
|
</tr>
|
||
|
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing=5 cellpadding=0 border=0>
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Intercepts and processes incoming messages, delegating them where they belong. <dl compact><dt><b>Parameters:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign=top><em>rawEvent</em> </td><td>SDL_Event of original message, may be needed if more information is available on event. (May be NULL). </td></tr>
|
||
|
<tr><td valign=top><em>event</em> </td><td>GewiEvent enum, description of event recieved. </td></tr>
|
||
|
<tr><td valign=top><em>mouseX</em> </td><td>Mouse x position in event, if not mouse event may be incorrect. </td></tr>
|
||
|
<tr><td valign=top><em>mouseY</em> </td><td>Mouse y position in event, if not mouse event may be incorrect. </td></tr>
|
||
|
<tr><td valign=top><em>ch</em> </td><td>Character pressed in event, may be 0 if not a keypress event. </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a name="a5" doxytag="Gewi::WidgetList::FitParent"></a><p>
|
||
|
<table width="100%" cellpadding="2" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top"> void Gewi::WidgetList::FitParent </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap></td>
|
||
|
</tr>
|
||
|
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing=5 cellpadding=0 border=0>
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Fits widgets to parent of which this linked list is a part of. </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a name="a6" doxytag="Gewi::WidgetList::ShowWidgets"></a><p>
|
||
|
<table width="100%" cellpadding="2" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top"> void Gewi::WidgetList::ShowWidgets </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap></td>
|
||
|
</tr>
|
||
|
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing=5 cellpadding=0 border=0>
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Calls Show method of widgets in reverse order for proper appearance. </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<hr>The documentation for this class was generated from the following files:<ul>
|
||
|
<li>/include/<a class="el" href="GewiWidgetList_8h-source.html">GewiWidgetList.h</a><li>/src/<a class="el" href="GewiWidgetList_8cpp.html">GewiWidgetList.cpp</a></ul>
|
||
|
<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>
|