557 lines
24 KiB
HTML
Executable File
557 lines
24 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>Gewi::GWidget 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::GWidget Class Reference</h1><code>#include <<a class="el" href="GewiWidget_8h-source.html">GewiWidget.h</a>></code>
|
|
<p>
|
|
Inherited by <a class="el" href="classGewi_1_1GButton.html">Gewi::GButton</a>, <a class="el" href="classGewi_1_1GContainer.html">Gewi::GContainer</a>, <a class="el" href="classGewi_1_1GSlider.html">Gewi::GSlider</a>, <a class="el" href="classGewi_1_1GStaticText.html">Gewi::GStaticText</a>, and <a class="el" href="classGewi_1_1GTextField.html">Gewi::GTextField</a>.
|
|
<p>
|
|
<a href="classGewi_1_1GWidget-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
Basic widget class, framework and base class for all other widgets.
|
|
<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_1GWidget.html#a0">GWidget</a> (<a class="el" href="classGewi_1_1GContainer.html">GContainer</a> *parent=NULL)</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Simple constructor for <a class="el" href="classGewi_1_1GWidget.html">GWidget</a>.</em> <a href="#a0"></a><em></em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#a1">~GWidget</a> ()</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Simple destructor.</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_1GWidget.html#a2">ToggleVisible</a> ()</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Toggle the visible flag.</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_1GWidget.html#a3">FitParent</a> ()</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Reposition widget within parent.</em> <a href="#a3"></a><em></em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#a4">Create</a> (float x, float y, float width, float height)</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Sets position and dimensions of widget.</em> <a href="#a4"></a><em></em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#a5">Move</a> (float x, float y)</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Change relative position.</em> <a href="#a5"></a><em></em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#a6">Message</a> (SDL_Event *rawEvent, <a class="el" href="namespaceGewi.html#a18">GewiEvent</a> event, Uint16 mouseX, Uint16 mouseY, char ch)=0</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Important function used to recieve messages.</em> <a href="#a6"></a><em></em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#a7">Show</a> ()=0</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Draws this button to the screen.</em> <a href="#a7"></a><em></em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#a8">X</a> ()</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Get X position of widget.</em> <a href="#a8"></a><em></em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#a9">Y</a> ()</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Get Y position of widget.</em> <a href="#a9"></a><em></em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#a10">Visible</a> ()</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Get visible state of widget.</em> <a href="#a10"></a><em></em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#a11">MouseInWidget</a> ()</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Check if mouse is in widget.</em> <a href="#a11"></a><em></em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#a12">Contains</a> (Sint16 x, Sint16 y)</td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Check if the widget contains a point.</em> <a href="#a12"></a><em></em><br><br></td></tr>
|
|
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
|
|
<tr><td nowrap align=right valign=top><a name="n0" doxytag="Gewi::GWidget::rGewi"></a>
|
|
<a class="el" href="classGewi_1_1GewiEngine.html">GewiEngine</a> * </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#n0">rGewi</a></td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Pointer to <a class="el" href="classGewi_1_1GewiEngine.html">GewiEngine</a> instance.</em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top><a name="n1" doxytag="Gewi::GWidget::rZE"></a>
|
|
ZE::ZEngine * </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#n1">rZE</a></td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Pointer to ZEngine instance.</em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top><a name="n2" doxytag="Gewi::GWidget::rBoundRect"></a>
|
|
ZE::ZRect </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#n2">rBoundRect</a></td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Rectangle describing area of widget.</em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top><a name="n3" doxytag="Gewi::GWidget::rParent"></a>
|
|
<a class="el" href="classGewi_1_1GContainer.html">GContainer</a> * </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#n3">rParent</a></td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Pointer to parent container. (NULL means it lays in the global setting).</em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top><a name="n4" doxytag="Gewi::GWidget::rRelX"></a>
|
|
float </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#n4">rRelX</a></td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Relative X position, relative to parent, or top corner of screen if in global setting.</em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top><a name="n5" doxytag="Gewi::GWidget::rRelY"></a>
|
|
float </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#n5">rRelY</a></td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Relative Y position, relative to parent, or top corner of screen if in global setting.</em><br><br></td></tr>
|
|
<tr><td nowrap align=right valign=top><a name="n6" doxytag="Gewi::GWidget::rVisible"></a>
|
|
bool </td><td valign=bottom><a class="el" href="classGewi_1_1GWidget.html#n6">rVisible</a></td></tr>
|
|
<tr><td> </td><td><em class="mdesc">Stores if widget is currently visible.</em><br><br></td></tr>
|
|
</table>
|
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a name="a0" doxytag="Gewi::GWidget::GWidget"></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::GWidget::GWidget </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top"><a class="el" href="classGewi_1_1GContainer.html">GContainer</a> * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>parent</em> = NULL </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>
|
|
Constructor for <a class="el" href="classGewi_1_1GWidget.html">GWidget</a>, like all widgets this must initialize private data and can take a parent. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign=top><em>parent</em> </td><td>Pointer to <a class="el" href="classGewi_1_1GContainer.html">GContainer</a> derived class to be the parent. Default value is NULL which means no parent. </td></tr>
|
|
</table>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a name="a1" doxytag="Gewi::GWidget::~GWidget"></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::GWidget::~GWidget </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [virtual]</code></td>
|
|
</tr>
|
|
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing=5 cellpadding=0 border=0>
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Must be virtual so that each derived class can free it's members. </td>
|
|
</tr>
|
|
</table>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<a name="a2" doxytag="Gewi::GWidget::ToggleVisible"></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::GWidget::ToggleVisible </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>
|
|
Toggles the visible flag, only visible widgets are drawn. </td>
|
|
</tr>
|
|
</table>
|
|
<a name="a3" doxytag="Gewi::GWidget::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::GWidget::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>
|
|
Adjust this widget to be in the correct position in relationship to it's parent. Only containers call this on their children, it generally shouldn't be called. </td>
|
|
</tr>
|
|
</table>
|
|
<a name="a4" doxytag="Gewi::GWidget::Create"></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::GWidget::Create </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">float </td>
|
|
<td class="mdname" nowrap> <em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td></td>
|
|
<td class="md" nowrap>float </td>
|
|
<td class="mdname" nowrap> <em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td></td>
|
|
<td class="md" nowrap>float </td>
|
|
<td class="mdname" nowrap> <em>width</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td></td>
|
|
<td class="md" nowrap>float </td>
|
|
<td class="mdname" nowrap> <em>height</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"><code> [virtual]</code></td>
|
|
</tr>
|
|
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing=5 cellpadding=0 border=0>
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Sets up widget rectangle, most widgets must override this to include their specific settings. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign=top><em>x</em> </td><td>X position of widget within it's container (entire screen if no parent) </td></tr>
|
|
<tr><td valign=top><em>y</em> </td><td>Y position of widget within it's container (entire screen if no parent) </td></tr>
|
|
<tr><td valign=top><em>width</em> </td><td>Width of widget. </td></tr>
|
|
<tr><td valign=top><em>height</em> </td><td>Height of widget. </td></tr>
|
|
</table>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a name="a5" doxytag="Gewi::GWidget::Move"></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::GWidget::Move </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">float </td>
|
|
<td class="mdname" nowrap> <em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td></td>
|
|
<td class="md" nowrap>float </td>
|
|
<td class="mdname" nowrap> <em>y</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"><code> [virtual]</code></td>
|
|
</tr>
|
|
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing=5 cellpadding=0 border=0>
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Set new relative position for widget. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign=top><em>x</em> </td><td>New relative x position. </td></tr>
|
|
<tr><td valign=top><em>y</em> </td><td>New relative y position. </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Reimplemented in <a class="el" href="classGewi_1_1GContainer.html#a2">Gewi::GContainer</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a name="a6" doxytag="Gewi::GWidget::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"> virtual void Gewi::GWidget::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"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing=5 cellpadding=0 border=0>
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Recieves and processes a message, required overload for all widgets. <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>
|
|
|
|
<p>
|
|
Implemented in <a class="el" href="classGewi_1_1GButton.html#a2">Gewi::GButton</a>, <a class="el" href="classGewi_1_1GContainer.html#a3">Gewi::GContainer</a>, <a class="el" href="classGewi_1_1GHorizSlider.html#a0">Gewi::GHorizSlider</a>, <a class="el" href="classGewi_1_1GVertSlider.html#a0">Gewi::GVertSlider</a>, <a class="el" href="classGewi_1_1GStaticText.html#a2">Gewi::GStaticText</a>, <a class="el" href="classGewi_1_1GTextField.html#a2">Gewi::GTextField</a>, and <a class="el" href="classGewi_1_1GWindow.html#a2">Gewi::GWindow</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a name="a7" doxytag="Gewi::GWidget::Show"></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"> virtual void Gewi::GWidget::Show </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing=5 cellpadding=0 border=0>
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Draws widget to the screen, required overload for all widgets.
|
|
<p>
|
|
Implemented in <a class="el" href="classGewi_1_1GButton.html#a3">Gewi::GButton</a>, <a class="el" href="classGewi_1_1GContainer.html#a4">Gewi::GContainer</a>, <a class="el" href="classGewi_1_1GHorizSlider.html#a1">Gewi::GHorizSlider</a>, <a class="el" href="classGewi_1_1GVertSlider.html#a1">Gewi::GVertSlider</a>, <a class="el" href="classGewi_1_1GStaticText.html#a3">Gewi::GStaticText</a>, <a class="el" href="classGewi_1_1GTextButton.html#a2">Gewi::GTextButton</a>, <a class="el" href="classGewi_1_1GTextField.html#a3">Gewi::GTextField</a>, and <a class="el" href="classGewi_1_1GWindow.html#a3">Gewi::GWindow</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a name="a8" doxytag="Gewi::GWidget::X"></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"> float Gewi::GWidget::X </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>
|
|
Get actual (not relative) X position of top left corner of widget. <dl compact><dt><b>Returns:</b></dt><dd>Actual x position of widget. </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a name="a9" doxytag="Gewi::GWidget::Y"></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"> float Gewi::GWidget::Y </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>
|
|
Get actual (not relative) Y position of top left corner of widget. <dl compact><dt><b>Returns:</b></dt><dd>Actual y position of widget. </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a name="a10" doxytag="Gewi::GWidget::Visible"></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"> bool Gewi::GWidget::Visible </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>
|
|
Returns status of internal visible flag. <dl compact><dt><b>Returns:</b></dt><dd>true if visible, false otherwise. </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a name="a11" doxytag="Gewi::GWidget::MouseInWidget"></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"> bool Gewi::GWidget::MouseInWidget </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>
|
|
Returns status of mouse inside widget. <dl compact><dt><b>Returns:</b></dt><dd>true if mouse pointer inside widget, false otherwise. </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a name="a12" doxytag="Gewi::GWidget::Contains"></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"> bool Gewi::GWidget::Contains </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">Sint16 </td>
|
|
<td class="mdname" nowrap> <em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td></td>
|
|
<td class="md" nowrap>Sint16 </td>
|
|
<td class="mdname" nowrap> <em>y</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>
|
|
Check if the widget contains the point specified. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign=top><em>x</em> </td><td>X value of point to check. </td></tr>
|
|
<tr><td valign=top><em>y</em> </td><td>Y value of point to check. </td></tr>
|
|
</table>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr>The documentation for this class was generated from the following files:<ul>
|
|
<li>/include/<a class="el" href="GewiWidget_8h-source.html">GewiWidget.h</a><li>/src/<a class="el" href="GewiWidget_8cpp.html">GewiWidget.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>
|