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

75 lines
6.9 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/GewiSlider.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/GewiSlider.h</h1><a href="GewiSlider_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 __gewislider_h__</span>
00021 <span class="preprocessor"></span><span class="preprocessor">#define __gewislider_h__</span>
00022 <span class="preprocessor"></span>
00023 <span class="preprocessor">#include "<a class="code" href="GewiEngine_8h.html">GewiEngine.h</a>"</span>
00024 <span class="preprocessor">#include "<a class="code" href="GewiWidget_8h.html">GewiWidget.h</a>"</span>
00025
00026 <span class="keyword">namespace </span>Gewi
00027 {
00028
<a name="l00034"></a><a class="code" href="classGewi_1_1GSlider.html">00034</a> <span class="keyword">class </span><a class="code" href="classGewi_1_1GSlider.html">GSlider</a> : <span class="keyword">public</span> <a class="code" href="classGewi_1_1GWidget.html">GWidget</a>
00035 {
00036 <span class="keyword">protected</span>:
<a name="l00038"></a><a class="code" href="classGewi_1_1GSlider.html#n0">00038</a> <span class="keywordtype">bool</span> <a class="code" href="classGewi_1_1GSlider.html#n0">rPressed</a>;
<a name="l00040"></a><a class="code" href="classGewi_1_1GSlider.html#n1">00040</a> <a class="code" href="namespaceGewi.html#a2">ResourceID</a> <a class="code" href="classGewi_1_1GSlider.html#n1">rBackground</a>;
<a name="l00042"></a><a class="code" href="classGewi_1_1GSlider.html#n2">00042</a> <a class="code" href="namespaceGewi.html#a2">ResourceID</a> <a class="code" href="classGewi_1_1GSlider.html#n2">rSlider</a>;
<a name="l00044"></a><a class="code" href="classGewi_1_1GSlider.html#n3">00044</a> <span class="keywordtype">float</span> <a class="code" href="classGewi_1_1GSlider.html#n3">rMin</a>;
<a name="l00046"></a><a class="code" href="classGewi_1_1GSlider.html#n4">00046</a> <span class="keywordtype">float</span> <a class="code" href="classGewi_1_1GSlider.html#n4">rMax</a>;
<a name="l00048"></a><a class="code" href="classGewi_1_1GSlider.html#n5">00048</a> <span class="keywordtype">float</span> <a class="code" href="classGewi_1_1GSlider.html#n5">rPos</a>;
<a name="l00050"></a><a class="code" href="classGewi_1_1GSlider.html#n6">00050</a> <span class="keywordtype">int</span> <a class="code" href="classGewi_1_1GSlider.html#n6">rIncrement</a>;
00051
00052 <span class="keyword">public</span>:
00059 <a class="code" href="classGewi_1_1GSlider.html#a0">GSlider</a>(<a class="code" href="classGewi_1_1GContainer.html">GContainer</a> *parent=NULL);
00060
00075 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GSlider.html#a1">Create</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> width, <span class="keywordtype">float</span> height, ResourceID backgroundImg, ResourceID sliderImg,
00076 <span class="keywordtype">float</span> min, <span class="keywordtype">float</span> max, <span class="keywordtype">int</span> increment);
00077
00084 <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GSlider.html#a2">SetPos</a>(<span class="keywordtype">float</span> pos);
00085
00092 <span class="keywordtype">float</span> <a class="code" href="classGewi_1_1GSlider.html#a3">GetPos</a>();
00093 };
00094
<a name="l00100"></a><a class="code" href="classGewi_1_1GHorizSlider.html">00100</a> <span class="keyword">class </span><a class="code" href="classGewi_1_1GHorizSlider.html">GHorizSlider</a> : <span class="keyword">public</span> <a class="code" href="classGewi_1_1GSlider.html">GSlider</a>
00101 {
00102 <span class="keyword">public</span>:
00113 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GHorizSlider.html#a0">Message</a>(SDL_Event *rawEvent, <a class="code" href="namespaceGewi.html#a18">GewiEvent</a> event, Uint16 mouseX, Uint16 mouseY, <span class="keywordtype">char</span> ch);
00114
00120 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GHorizSlider.html#a1">Show</a>();
00121 };
00122
<a name="l00128"></a><a class="code" href="classGewi_1_1GVertSlider.html">00128</a> <span class="keyword">class </span><a class="code" href="classGewi_1_1GVertSlider.html">GVertSlider</a> : <span class="keyword">public</span> <a class="code" href="classGewi_1_1GSlider.html">GSlider</a>
00129 {
00130 <span class="keyword">public</span>:
00141 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GVertSlider.html#a0">Message</a>(SDL_Event *rawEvent, <a class="code" href="namespaceGewi.html#a18">GewiEvent</a> event, Uint16 mouseX, Uint16 mouseY, <span class="keywordtype">char</span> ch);
00142
00148 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGewi_1_1GVertSlider.html#a1">Show</a>();
00149 };
00150
00151 }
00152
00153 <span class="preprocessor">#endif //__gewislider_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>