ewol/_button_8hpp_source.html

197 lines
40 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/Button.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/echrono">echrono</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/etranslate">etranslate</a></li>
<li><a href="http://atria-soft.github.io/zeus">zeus</a></li>
<li><a href="http://musicdsp.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;margin-top: 60px;">
<!-- 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">Button.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="_button_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;<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="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &lt;ewol/debug.hpp&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="_text_8hpp.html">ewol/compositing/Text.hpp</a>&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="compositing_2_image_8hpp.html">ewol/compositing/Image.hpp</a>&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_shaper_8hpp.html">ewol/compositing/Shaper.hpp</a>&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_container2_8hpp.html">ewol/widget/Container2.hpp</a>&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="widget_2_manager_8hpp.html">ewol/widget/Manager.hpp</a>&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &lt;esignal/Signal.hpp&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceewol.html">ewol</a> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; <span class="keyword">namespace </span>widget {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keyword">class </span>Button;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <span class="keyword">using</span> ButtonShared = <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::Button&gt;</a>;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; <span class="keyword">using</span> ButtonWeak = <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::Button&gt;</a>;</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html"> 28</a></span>&#160; <span class="keyword">class </span><a class="code" href="classewol_1_1widget_1_1_button.html">Button</a> : <span class="keyword">public</span> <a class="code" href="classewol_1_1widget_1_1_container2.html">ewol::widget::Container2</a> {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2d"> 30</a></span>&#160; <span class="keyword">enum</span> <a class="code" href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2d">buttonLock</a>{</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2da84a4c4fd7beeeb04d669c4b022d4f89a"> 31</a></span>&#160; <a class="code" href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2da84a4c4fd7beeeb04d669c4b022d4f89a">lockNone</a>, </div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2da2a487f74f498fe2b879b18c05bf80424"> 32</a></span>&#160; <a class="code" href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2da2a487f74f498fe2b879b18c05bf80424">lockWhenPressed</a>, </div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2da0425eece05c42301f15a81d1804d751c"> 33</a></span>&#160; <a class="code" href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2da0425eece05c42301f15a81d1804d751c">lockWhenReleased</a>, </div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2daed33ba1602d461503f677268edb1663f"> 34</a></span>&#160; <a class="code" href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2daed33ba1602d461503f677268edb1663f">lockAccess</a>, </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; };</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keyword">public</span>: <span class="comment">// Event list</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; esignal::Signal&lt;&gt; signalPressed;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; esignal::Signal&lt;&gt; signalDown;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; esignal::Signal&lt;&gt; signalUp;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; esignal::Signal&lt;&gt; signalEnter;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; esignal::Signal&lt;&gt; signalLeave;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; esignal::Signal&lt;bool&gt; signalValue;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keyword">public</span>: <span class="comment">// propertie list</span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html#a866371d2f096c5740f81dfbfa172ac89"> 44</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;std::string&gt;</a> <a class="code" href="classewol_1_1widget_1_1_button.html#a866371d2f096c5740f81dfbfa172ac89">propertyShape</a>; </div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html#aed42bbf811aeccbd53c1b1de4bf6fce4"> 45</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;bool&gt;</a> <a class="code" href="classewol_1_1widget_1_1_button.html#aed42bbf811aeccbd53c1b1de4bf6fce4">propertyValue</a>; </div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html#a506ea7b6678f873074b243ddeec3a16b"> 46</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_list.html">eproperty::List&lt;enum buttonLock&gt;</a> <a class="code" href="classewol_1_1widget_1_1_button.html#a506ea7b6678f873074b243ddeec3a16b">propertyLock</a>; </div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html#ac7de5c84dd95d11d463c77763a2f86ff"> 47</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;bool&gt;</a> <a class="code" href="classewol_1_1widget_1_1_button.html#ac7de5c84dd95d11d463c77763a2f86ff">propertyToggleMode</a>; </div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html#a93c5d302cf9ee0798cd77f5721f0a6ac"> 48</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;bool&gt;</a> <a class="code" href="classewol_1_1widget_1_1_button.html#a93c5d302cf9ee0798cd77f5721f0a6ac">propertyEnableSingle</a>; </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <a class="code" href="classewol_1_1compositing_1_1_shaper.html">ewol::compositing::Shaper</a> m_shaper; </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="l00056"></a><span class="lineno"> 56</span>&#160; <a class="code" href="classewol_1_1widget_1_1_button.html#a01fa50ce65d5fdf252f0e7564a621e8d">Button</a>();</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordtype">void</span> init() <span class="keyword">override</span>;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; DECLARE_WIDGET_FACTORY(<a class="code" href="classewol_1_1widget_1_1_button.html">Button</a>, <span class="stringliteral">&quot;Button&quot;</span>);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classewol_1_1widget_1_1_button.html#a556fe2e660cb353b7e3568e4eec46112">~Button</a>();</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordtype">bool</span> m_mouseHover; </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keywordtype">bool</span> m_buttonPressed; </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="comment">// hover area :</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <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/classetk_1_1_vector2_d.html">vec2</a> m_selectableAreaPos; </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <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/classetk_1_1_vector2_d.html">vec2</a> m_selectableAreaSize; </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordtype">void</span> changeStatusIn(int32_t _newStatusId);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordtype">void</span> CheckStatus();</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keyword">protected</span>: <span class="comment">// Derived function</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classewol_1_1widget_1_1_button.html#a249fecb2e1a3cbab178cd0d7861bedf0">onDraw</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classewol_1_1widget_1_1_button.html#a6520c05801954e1c96c64b692a3e3b07">calculateMinMaxSize</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classewol_1_1widget_1_1_button.html#a88bba099fb03260db3d95b081be80c69">onChangeSize</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classewol_1_1widget_1_1_button.html#ae94fdaaf81c063cfd6db78a19544999e">onRegenerateDisplay</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classewol_1_1widget_1_1_button.html#a20ec3d2ac2eb231ff1cb3e2176292111">onEventInput</a>(<span class="keyword">const</span> <a class="code" href="classewol_1_1event_1_1_input.html">ewol::event::Input</a>&amp; _event) <span class="keyword">override</span>;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classewol_1_1widget_1_1_button.html#ad9691b019bd6c18e35998929ca1d98da">onEventEntry</a>(<span class="keyword">const</span> <a class="code" href="classewol_1_1event_1_1_entry.html">ewol::event::Entry</a>&amp; _event) <span class="keyword">override</span>;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html#a4f3468c10826c5f29acdf3c12fe2dbb8"> 88</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classewol_1_1widget_1_1_button.html#a4f3468c10826c5f29acdf3c12fe2dbb8">onDetectPresenceToggleWidget</a>()<span class="keyword"> override </span>{</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; propertyToggleMode.<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_property_type.html#a29dd42486e15d92b9ea94d30e99854e1">set</a>(<span class="keyword">true</span>);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; }</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classewol_1_1widget_1_1_button.html#a966cd2350631316b2c85d4123441beef"> 92</a></span>&#160; esignal::Connection <a class="code" href="classewol_1_1widget_1_1_button.html#a966cd2350631316b2c85d4123441beef">m_PCH</a>; </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classewol_1_1widget_1_1_button.html#aeae3ab52eb0e74e525d7838a60473428">periodicCall</a>(<span class="keyword">const</span> <a class="code" href="classewol_1_1event_1_1_time.html">ewol::event::Time</a>&amp; _event);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classewol_1_1widget_1_1_button.html#a020ee5c60a1c7b3ded85749a27b729e7">onLostFocus</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> onChangePropertyShape();</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> onChangePropertyValue();</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> onChangePropertyLock();</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> onChangePropertyToggleMode();</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> onChangePropertyEnableSingle();</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; };</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; };</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</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_button_html_a01fa50ce65d5fdf252f0e7564a621e8d"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a01fa50ce65d5fdf252f0e7564a621e8d">ewol::widget::Button::Button</a></div><div class="ttdeci">Button()</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a88bba099fb03260db3d95b081be80c69"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a88bba099fb03260db3d95b081be80c69">ewol::widget::Button::onChangeSize</a></div><div class="ttdeci">void onChangeSize() override</div><div class="ttdoc">Parent have set the size and the origin. the container need to update the subwidget property...</div></div>
<div class="ttc" id="classewol_1_1event_1_1_entry_html"><div class="ttname"><a href="classewol_1_1event_1_1_entry.html">ewol::event::Entry</a></div><div class="ttdef"><b>Definition:</b> Entry.hpp:13</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a0d9f9cc94f74279c772b7d7aff3d0a2daed33ba1602d461503f677268edb1663f"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2daed33ba1602d461503f677268edb1663f">ewol::widget::Button::lockAccess</a></div><div class="ttdoc">all event are trashed == &gt; acctivity of the button is disable </div><div class="ttdef"><b>Definition:</b> Button.hpp:34</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a6520c05801954e1c96c64b692a3e3b07"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a6520c05801954e1c96c64b692a3e3b07">ewol::widget::Button::calculateMinMaxSize</a></div><div class="ttdeci">void calculateMinMaxSize() override</div><div class="ttdoc">calculate the minimum and maximum size (need to estimate expend properties of the widget) ...</div></div>
<div class="ttc" id="classewol_1_1event_1_1_input_html"><div class="ttname"><a href="classewol_1_1event_1_1_input.html">ewol::event::Input</a></div><div class="ttdef"><b>Definition:</b> Input.hpp:12</div></div>
<div class="ttc" id="_container2_8hpp_html"><div class="ttname"><a href="_container2_8hpp.html">Container2.hpp</a></div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a249fecb2e1a3cbab178cd0d7861bedf0"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a249fecb2e1a3cbab178cd0d7861bedf0">ewol::widget::Button::onDraw</a></div><div class="ttdeci">virtual void onDraw() override</div><div class="ttdoc">Common widget drawing function (called by the drawing thread [Android, X11, ...]) ...</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a4f3468c10826c5f29acdf3c12fe2dbb8"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a4f3468c10826c5f29acdf3c12fe2dbb8">ewol::widget::Button::onDetectPresenceToggleWidget</a></div><div class="ttdeci">void onDetectPresenceToggleWidget() override</div><div class="ttdoc">Called when parsing a XML and detect the presence of a second Widget. </div><div class="ttdef"><b>Definition:</b> Button.hpp:88</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a93c5d302cf9ee0798cd77f5721f0a6ac"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a93c5d302cf9ee0798cd77f5721f0a6ac">ewol::widget::Button::propertyEnableSingle</a></div><div class="ttdeci">eproperty::Value&lt; bool &gt; propertyEnableSingle</div><div class="ttdoc">When a single subwidget is set display all time it. </div><div class="ttdef"><b>Definition:</b> Button.hpp:48</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a20ec3d2ac2eb231ff1cb3e2176292111"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a20ec3d2ac2eb231ff1cb3e2176292111">ewol::widget::Button::onEventInput</a></div><div class="ttdeci">bool onEventInput(const ewol::event::Input &amp;_event) override</div><div class="ttdoc">Event on an input of this Widget (finger, mouse, stilet) </div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a020ee5c60a1c7b3ded85749a27b729e7"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a020ee5c60a1c7b3ded85749a27b729e7">ewol::widget::Button::onLostFocus</a></div><div class="ttdeci">void onLostFocus() override</div><div class="ttdoc">Event of the focus has been lost by the current widget. </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="classewol_1_1widget_1_1_container2_html"><div class="ttname"><a href="classewol_1_1widget_1_1_container2.html">ewol::widget::Container2</a></div><div class="ttdoc">the Cotainer widget is a widget that have an only one subWidget </div><div class="ttdef"><b>Definition:</b> Container2.hpp:22</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_ae94fdaaf81c063cfd6db78a19544999e"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#ae94fdaaf81c063cfd6db78a19544999e">ewol::widget::Button::onRegenerateDisplay</a></div><div class="ttdeci">void onRegenerateDisplay() override</div><div class="ttdoc">Event generated when a redraw is needed. </div></div>
<div class="ttc" id="classewol_1_1event_1_1_time_html"><div class="ttname"><a href="classewol_1_1event_1_1_time.html">ewol::event::Time</a></div><div class="ttdef"><b>Definition:</b> Time.hpp:14</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a866371d2f096c5740f81dfbfa172ac89"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a866371d2f096c5740f81dfbfa172ac89">ewol::widget::Button::propertyShape</a></div><div class="ttdeci">eproperty::Value&lt; std::string &gt; propertyShape</div><div class="ttdoc">shaper name property </div><div class="ttdef"><b>Definition:</b> Button.hpp:44</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="_text_8hpp_html"><div class="ttname"><a href="_text_8hpp.html">Text.hpp</a></div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a966cd2350631316b2c85d4123441beef"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a966cd2350631316b2c85d4123441beef">ewol::widget::Button::m_PCH</a></div><div class="ttdeci">esignal::Connection m_PCH</div><div class="ttdoc">Periodic Call Handle to remove it when needed. </div><div class="ttdef"><b>Definition:</b> Button.hpp:92</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a506ea7b6678f873074b243ddeec3a16b"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a506ea7b6678f873074b243ddeec3a16b">ewol::widget::Button::propertyLock</a></div><div class="ttdeci">eproperty::List&lt; enum buttonLock &gt; propertyLock</div><div class="ttdoc">Current lock state of the button. </div><div class="ttdef"><b>Definition:</b> Button.hpp:46</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_ad9691b019bd6c18e35998929ca1d98da"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#ad9691b019bd6c18e35998929ca1d98da">ewol::widget::Button::onEventEntry</a></div><div class="ttdeci">bool onEventEntry(const ewol::event::Entry &amp;_event) override</div><div class="ttdoc">Entry event. represent the physical event : </div></div>
<div class="ttc" id="classeproperty_1_1_property_type_html_a29dd42486e15d92b9ea94d30e99854e1"><div class="ttname"><a href="http://atria-soft.github.io/eproperty/classeproperty_1_1_property_type.html#a29dd42486e15d92b9ea94d30e99854e1">eproperty::PropertyType::set</a></div><div class="ttdeci">virtual void set(const TYPE &amp;_newVal)</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a0d9f9cc94f74279c772b7d7aff3d0a2da84a4c4fd7beeeb04d669c4b022d4f89a"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2da84a4c4fd7beeeb04d669c4b022d4f89a">ewol::widget::Button::lockNone</a></div><div class="ttdoc">normal status of the button </div><div class="ttdef"><b>Definition:</b> Button.hpp:31</div></div>
<div class="ttc" id="classetk_1_1_vector2_d_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/classetk_1_1_vector2_d.html">etk::Vector2D&lt; float &gt;</a></div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a0d9f9cc94f74279c772b7d7aff3d0a2da2a487f74f498fe2b879b18c05bf80424"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2da2a487f74f498fe2b879b18c05bf80424">ewol::widget::Button::lockWhenPressed</a></div><div class="ttdoc">When the state is set in pressed, the status stay in this one. </div><div class="ttdef"><b>Definition:</b> Button.hpp:32</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&lt; ewol::widget::Button &gt;</a></div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a556fe2e660cb353b7e3568e4eec46112"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a556fe2e660cb353b7e3568e4eec46112">ewol::widget::Button::~Button</a></div><div class="ttdeci">virtual ~Button()</div><div class="ttdoc">Destructor. </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; std::string &gt;</a></div></div>
<div class="ttc" id="classewol_1_1compositing_1_1_shaper_html"><div class="ttname"><a href="classewol_1_1compositing_1_1_shaper.html">ewol::compositing::Shaper</a></div><div class="ttdoc">the Shaper system is a basic theme configuration for every widget, it corespond at a background displ...</div><div class="ttdef"><b>Definition:</b> Shaper.hpp:39</div></div>
<div class="ttc" id="_shaper_8hpp_html"><div class="ttname"><a href="_shaper_8hpp.html">Shaper.hpp</a></div></div>
<div class="ttc" id="compositing_2_image_8hpp_html"><div class="ttname"><a href="compositing_2_image_8hpp.html">Image.hpp</a></div></div>
<div class="ttc" id="classeproperty_1_1_list_html"><div class="ttname"><a href="http://atria-soft.github.io/eproperty/classeproperty_1_1_list.html">eproperty::List&lt; enum buttonLock &gt;</a></div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a0d9f9cc94f74279c772b7d7aff3d0a2da0425eece05c42301f15a81d1804d751c"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2da0425eece05c42301f15a81d1804d751c">ewol::widget::Button::lockWhenReleased</a></div><div class="ttdoc">When the state is set in not pressed, the status stay in this one. </div><div class="ttdef"><b>Definition:</b> Button.hpp:33</div></div>
<div class="ttc" id="widget_2_manager_8hpp_html"><div class="ttname"><a href="widget_2_manager_8hpp.html">Manager.hpp</a></div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_a0d9f9cc94f74279c772b7d7aff3d0a2d"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#a0d9f9cc94f74279c772b7d7aff3d0a2d">ewol::widget::Button::buttonLock</a></div><div class="ttdeci">buttonLock</div><div class="ttdef"><b>Definition:</b> Button.hpp:30</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_aeae3ab52eb0e74e525d7838a60473428"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#aeae3ab52eb0e74e525d7838a60473428">ewol::widget::Button::periodicCall</a></div><div class="ttdeci">void periodicCall(const ewol::event::Time &amp;_event)</div><div class="ttdoc">Periodic call to update grapgic display. </div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_ac7de5c84dd95d11d463c77763a2f86ff"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#ac7de5c84dd95d11d463c77763a2f86ff">ewol::widget::Button::propertyToggleMode</a></div><div class="ttdeci">eproperty::Value&lt; bool &gt; propertyToggleMode</div><div class="ttdoc">The button is able to toggle. </div><div class="ttdef"><b>Definition:</b> Button.hpp:47</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html">ewol::widget::Button</a></div><div class="ttdoc">a composed button is a button with an inside composed with the specify XML element ==&gt; this permit to...</div><div class="ttdef"><b>Definition:</b> Button.hpp:28</div></div>
<div class="ttc" id="classewol_1_1widget_1_1_button_html_aed42bbf811aeccbd53c1b1de4bf6fce4"><div class="ttname"><a href="classewol_1_1widget_1_1_button.html#aed42bbf811aeccbd53c1b1de4bf6fce4">ewol::widget::Button::propertyValue</a></div><div class="ttdeci">eproperty::Value&lt; bool &gt; propertyValue</div><div class="ttdoc">Current state of the button. </div><div class="ttdef"><b>Definition:</b> Button.hpp:45</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 15:35:52 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>