ewol/_spin_8hpp_source.html
2016-10-23 21:18:24 +02:00

169 lines
23 KiB
HTML

<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- For Mobile Devices -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<title>Ewol: Ewol Widget in OpenGl: framework/atria-soft/ewol/ewol/widget/Spin.hpp Source File</title>
<!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="doxy-boot.js"></script>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand">Ewol: Ewol Widget in OpenGl 0.10.0</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Main&nbsp;Page</a></li>
<li><a href="pages.html">Related&nbsp;Pages</a></li>
<li><a href="namespaces.html">Namespaces</a></li>
<li><a href="annotated.html">Classes</a></li>
<li><a href="files.html">Files</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Link-libs<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="http://HeeroYui.github.io/lutin">lutin</a></li>
<li><a href="http://atria-soft.github.io/ewol">ewol</a></li>
<li><a href="http://atria-soft.github.io/etk">etk</a></li>
<li><a href="http://atria-soft.github.io/ejson">ejson</a></li>
<li><a href="http://atria-soft.github.io/exml">exml</a></li>
<li><a href="http://atria-soft.github.io/esvg">esvg</a></li>
<li><a href="http://atria-soft.github.io/egami">egami</a></li>
<li><a href="http://atria-soft.github.io/gale">gale</a></li>
<li><a href="http://atria-soft.github.io/ege">ege</a></li>
<li><a href="http://atria-soft.github.io/elog">elog</a></li>
<li><a href="http://atria-soft.github.io/ememory">ememory</a></li>
<li><a href="http://atria-soft.github.io/enet">enet</a></li>
<li><a href="http://atria-soft.github.io/eproperty">eproperty</a></li>
<li><a href="http://atria-soft.github.io/esignal">esignal</a></li>
<li><a href="http://atria-soft.github.io/zeus">zeus</a></li>
<li><a href="http://atria-soft.github.io/audio-ess">audio-ess</a></li>
<li><a href="http://musicdsp.github.io/audio">audio</a></li>
<li><a href="http://musicdsp.github.io/audio-drain">audio-drain</a></li>
<li><a href="http://musicdsp.github.io/audio-orchestra">audio-orchestra</a></li>
<li><a href="http://musicdsp.github.io/audio-river">audio-river</a></li>
</ul>
</li>
</ul>
<div id="search-box" class="input-group">
<div class="input-group-btn">
<button aria-expanded="false" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-search"></span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">All</a></li>
<li><a href="#">Classes</a></li>
<li><a href="#">Namespaces</a></li>
<li><a href="#">Files</a></li>
<li><a href="#">Functions</a></li>
<li><a href="#">Variables</a></li>
<li><a href="#">Typedefs</a></li>
<li><a href="#">Enumerations</a></li>
<li><a href="#">Enumerator</a></li>
<li><a href="#">Friends</a></li>
<li><a href="#">Macros</a></li>
<li><a href="#">Pages</a></li>
</ul>
</div>
<button id="search-close" type="button" class="close" aria-label="Close">
<span aria-hidden="true"></span>
</button>
<input id="search-field" class="form-control" accesskey="S" onkeydown="searchBox.OnSearchFieldChange(event);" placeholder="Search ..." type="text">
</div>
</div><!--/.nav-collapse -->
</div>
</nav>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div class="content" id="content">
<div class="container">
<div class="row">
<div class="col-sm-12 panel panel-default" style="padding-bottom: 15px;">
<div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_644e041c3a6521da7b27eba0e4eb2b95.html">framework</a></li><li class="navelem"><a class="el" href="dir_a094892b17be858f66bf3446bbb755c7.html">atria-soft</a></li><li class="navelem"><a class="el" href="dir_90b06c1c445cb1731bd6346c36eb6f0c.html">ewol</a></li><li class="navelem"><a class="el" href="dir_b91da374a1ab60ee2d83a750c3a335b8.html">ewol</a></li><li class="navelem"><a class="el" href="dir_7f8e63c4a8103cf6be6e72e26b36725d.html">widget</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Spin.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="_spin_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/types__8hpp.html">etk/types.hpp</a>&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_spin_base_8hpp.html">ewol/widget/meta/SpinBase.hpp</a>&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceewol.html">ewol</a> {</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; <span class="keyword">namespace </span>widget {</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; <span class="keyword">class </span>Spin;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; <span class="keyword">using</span> SpinShared = <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ewol::widget::Spin&gt;</a>;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; <span class="keyword">using</span> SpinWeak = <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_weak_ptr.html">ememory::WeakPtr&lt;ewol::widget::Spin&gt;</a>;</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_spin.html"> 21</a></span>&#160; <span class="keyword">class </span><a class="code" href="classewol_1_1widget_1_1_spin.html">Spin</a> : <span class="keyword">public</span> <a class="code" href="classewol_1_1widget_1_1_spin_base.html">ewol::widget::SpinBase</a> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; <span class="comment">// Event list of properties</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; esignal::Signal&lt;int64_t&gt; signalValue;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; esignal::Signal&lt;double&gt; signalValueDouble;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_spin.html#ad0c75ad3c397c15feef2ccc2e9bc8cb0"> 27</a></span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/classeproperty_1_1_value.html">eproperty::Value&lt;int64_t&gt;</a> <a class="code" href="classewol_1_1widget_1_1_spin.html#ad0c75ad3c397c15feef2ccc2e9bc8cb0">propertyValue</a>; </div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_spin.html#a17f077698bf9945fe130aa4e6089c4b6"> 28</a></span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/classeproperty_1_1_value.html">eproperty::Value&lt;int64_t&gt;</a> <a class="code" href="classewol_1_1widget_1_1_spin.html#a17f077698bf9945fe130aa4e6089c4b6">propertyMin</a>; </div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_spin.html#ab1e46749c531bbe15923720c55b69763"> 29</a></span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/classeproperty_1_1_value.html">eproperty::Value&lt;int64_t&gt;</a> <a class="code" href="classewol_1_1widget_1_1_spin.html#ab1e46749c531bbe15923720c55b69763">propertyMax</a>; </div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_spin.html#a9ecccc21ca523f2a5051a5f37371fd1e"> 30</a></span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/classeproperty_1_1_value.html">eproperty::Value&lt;int64_t&gt;</a> <a class="code" href="classewol_1_1widget_1_1_spin.html#a9ecccc21ca523f2a5051a5f37371fd1e">propertyIncrement</a>; </div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_spin.html#ac3269ca35e85aedcb319a00bb052ab80"> 31</a></span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/classeproperty_1_1_value.html">eproperty::Value&lt;int8_t&gt;</a> <a class="code" href="classewol_1_1widget_1_1_spin.html#ac3269ca35e85aedcb319a00bb052ab80">propertyMantis</a>; </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <a class="code" href="classewol_1_1widget_1_1_spin.html#ad043a22538f4cf9f7d01e7ac3623dfed">Spin</a>();</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; DECLARE_WIDGET_FACTORY(<a class="code" href="classewol_1_1widget_1_1_spin.html">Spin</a>, <span class="stringliteral">&quot;Spin&quot;</span>);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classewol_1_1widget_1_1_spin.html#ac5e80c87088f4ad6c90a08e67f6113dc">~Spin</a>();</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> checkValue(int64_t _value);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> updateGui();</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordtype">void</span> onCallbackUp();</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordtype">void</span> onCallbackDown();</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; esignal::Connection m_connectionEntry;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; esignal::Connection m_connectionButtonUp;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; esignal::Connection m_connectionButtonDown;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> onChangePropertyValue();</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> onChangePropertyMin();</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> onChangePropertyMax();</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> onChangePropertyIncrement();</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> onChangePropertyMantis();</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; };</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; };</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;};</div><div class="ttc" id="classememory_1_1_weak_ptr_html"><div class="ttname"><a href="http://atria-soft.github.io/ememory/classememory_1_1_weak_ptr.html">ememory::WeakPtr</a></div></div>
<div class="ttc" id="classewol_1_1widget_1_1_spin_html_ac5e80c87088f4ad6c90a08e67f6113dc"><div class="ttname"><a href="classewol_1_1widget_1_1_spin.html#ac5e80c87088f4ad6c90a08e67f6113dc">ewol::widget::Spin::~Spin</a></div><div class="ttdeci">virtual ~Spin()</div><div class="ttdoc">Destructor. </div></div>
<div class="ttc" id="types__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/types__8hpp.html">types.hpp</a></div></div>
<div class="ttc" id="namespaceewol_html"><div class="ttname"><a href="namespaceewol.html">ewol</a></div><div class="ttdef"><b>Definition:</b> Area.hpp:16</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_spin_html"><div class="ttname"><a href="classewol_1_1widget_1_1_spin.html">ewol::widget::Spin</a></div><div class="ttdoc">a composed Spin is a Spin with an inside composed with the specify XML element ==&gt; this permit to gen...</div><div class="ttdef"><b>Definition:</b> Spin.hpp:21</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_spin_html_a17f077698bf9945fe130aa4e6089c4b6"><div class="ttname"><a href="classewol_1_1widget_1_1_spin.html#a17f077698bf9945fe130aa4e6089c4b6">ewol::widget::Spin::propertyMin</a></div><div class="ttdeci">eproperty::Value&lt; int64_t &gt; propertyMin</div><div class="ttdoc">Minimum value. </div><div class="ttdef"><b>Definition:</b> Spin.hpp:28</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_spin_html_a9ecccc21ca523f2a5051a5f37371fd1e"><div class="ttname"><a href="classewol_1_1widget_1_1_spin.html#a9ecccc21ca523f2a5051a5f37371fd1e">ewol::widget::Spin::propertyIncrement</a></div><div class="ttdeci">eproperty::Value&lt; int64_t &gt; propertyIncrement</div><div class="ttdoc">Increment value. </div><div class="ttdef"><b>Definition:</b> Spin.hpp:30</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_spin_html_ad0c75ad3c397c15feef2ccc2e9bc8cb0"><div class="ttname"><a href="classewol_1_1widget_1_1_spin.html#ad0c75ad3c397c15feef2ccc2e9bc8cb0">ewol::widget::Spin::propertyValue</a></div><div class="ttdeci">eproperty::Value&lt; int64_t &gt; propertyValue</div><div class="ttdoc">Current value of the Spin. </div><div class="ttdef"><b>Definition:</b> Spin.hpp:27</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_spin_html_ab1e46749c531bbe15923720c55b69763"><div class="ttname"><a href="classewol_1_1widget_1_1_spin.html#ab1e46749c531bbe15923720c55b69763">ewol::widget::Spin::propertyMax</a></div><div class="ttdeci">eproperty::Value&lt; int64_t &gt; propertyMax</div><div class="ttdoc">Maximum value. </div><div class="ttdef"><b>Definition:</b> Spin.hpp:29</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_spin_base_html"><div class="ttname"><a href="classewol_1_1widget_1_1_spin_base.html">ewol::widget::SpinBase</a></div><div class="ttdef"><b>Definition:</b> SpinBase.hpp:64</div></div>
<div class="ttc" id="classememory_1_1_shared_ptr_html"><div class="ttname"><a href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr</a></div></div>
<div class="ttc" id="_spin_base_8hpp_html"><div class="ttname"><a href="_spin_base_8hpp.html">SpinBase.hpp</a></div></div>
<div class="ttc" id="classeproperty_1_1_value_html"><div class="ttname"><a href="http://atria-soft.github.io/eproperty/classeproperty_1_1_value.html">eproperty::Value&lt; int64_t &gt;</a></div></div>
<div class="ttc" id="classewol_1_1widget_1_1_spin_html_ad043a22538f4cf9f7d01e7ac3623dfed"><div class="ttname"><a href="classewol_1_1widget_1_1_spin.html#ad043a22538f4cf9f7d01e7ac3623dfed">ewol::widget::Spin::Spin</a></div><div class="ttdeci">Spin()</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classewol_1_1widget_1_1_spin_html_ac3269ca35e85aedcb319a00bb052ab80"><div class="ttname"><a href="classewol_1_1widget_1_1_spin.html#ac3269ca35e85aedcb319a00bb052ab80">ewol::widget::Spin::propertyMantis</a></div><div class="ttdeci">eproperty::Value&lt; int8_t &gt; propertyMantis</div><div class="ttdoc">number of value under &amp;#39;.&amp;#39; value </div><div class="ttdef"><b>Definition:</b> Spin.hpp:31</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated on Mon Oct 24 2016 14:06:03 for Ewol: Ewol Widget in OpenGl by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>