ewol/class_ewol__widget__WidgetScrooled.html

220 lines
14 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>ewol Library</title>
<link rel="stylesheet" href="base.css">
<link rel="stylesheet" href="menu.css">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="container">
<h1><a href="index.html">ewol library</a></h1>
<h4><a href="http://github.com/heeroyui/ewol/">&nbsp;&nbsp;&nbsp;[ sources ]</a></h4>
<h3>API:</h3> <div id="menu">
<ul class="niveau1">
<li class="sousmenu"><a href="namespace_ewol.html">ewol</a>
<ul class="niveau2">
<li><a href="namespace_ewol__key.html">key</a>
</li>
<li><a href="namespace_ewol__widget.html">widget</a>
</li>
<li><a href="namespace_ewol__openGL.html">openGL</a>
</li>
<li class="sousmenu"><a href="namespace_ewol__context.html">context</a>
<ul class="niveau3">
<li><a href="namespace_ewol__context__clipBoard.html">clipBoard</a>
</li>
</ul>
</li>
<li class="sousmenu"><a href="namespace_ewol__audio.html">audio</a>
<ul class="niveau3">
<li><a href="namespace_ewol__audio__wav.html">wav</a>
</li>
<li><a href="namespace_ewol__audio__music.html">music</a>
</li>
<li><a href="namespace_ewol__audio__effects.html">effects</a>
</li>
</ul>
</li>
<li><a href="namespace_ewol__portAudio.html">portAudio</a>
</li>
<li><a href="namespace_ewol__compositing.html">compositing</a>
</li>
<li><a href="namespace_ewol__object.html">object</a>
</li>
<li><a href="namespace_ewol__resource.html">resource</a>
</li>
<li><a href="namespace_ewol__font.html">font</a>
</li>
<li><a href="namespace_ewol__event.html">event</a>
</li>
</ul>
</li>
<li><a href="namespace_MacOs.html">MacOs</a>
</li>
</ul>
</div>
<h3>Documentation:</h3><div id="menu">
<ul class="niveau1"><li><a href="001_bases.html">bases</a></li>
</ul></div>
<h3>Tutorials:</h3><div id="menu">
<ul class="niveau1"><li><a href="tutorial_000_Build.html">Build</a></li>
</ul><ul class="niveau1"><li><a href="tutorial_001_HelloWord.html">HelloWord</a></li>
</ul></div>
<br/><h3>Associate libraries:</h3><div id="menu">
<ul class="niveau1"><li><a href="../ejson/index.html">ejson</a></li>
</ul><ul class="niveau1"><li><a href="../egami/index.html">egami</a></li>
</ul><ul class="niveau1"><li><a href="../ege/index.html">ege</a></li>
</ul><ul class="niveau1"><li><a href="../esvg/index.html">esvg</a></li>
</ul><ul class="niveau1"><li><a href="../etk/index.html">etk</a></li>
</ul><ul class="niveau1"><li><a href="../exml/index.html">exml</a></li>
</ul></div>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</div>
</div>
<div class="container" id="content">
<h1>class: ewol::widget::WidgetScrooled</h1><hr/><h2>enum:</h2>
<ul>
<li><a href="enum_ewol__widget__WidgetScrooled__scrollingMode.html">scrollingMode</a></li></ul>
<h2>Constructor and Destructor:</h2>
<pre>
+ <a class="code-function" href="#2331">WidgetScrooled</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-storage-keyword">virtual</span> <a class="code-function" href="#2333">~WidgetScrooled</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
<br/>
<h2>Synopsis:</h2>
<pre>
# vec2 <a class="code-member" href="#2325">m_originScrooled</a>;<br/># vec2 <a class="code-member" href="#2326">m_maxSize</a>;<br/># <span class="code-type" >float</span> <a class="code-member" href="#2327">m_limitScrolling</a>;<br/># <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <a class="code-function" href="#2335">onDraw</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <a class="code-function" href="#2337">onRegenerateDisplay</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >bool</span> <a class="code-function" href="#2339">onEventInput</a> (<span class="code-storage-keyword">const</span> <a class="code-type" href="class_ewol__event__Input.html">ewol::event::Input</a> & <span class="code-argument">_event</span>);<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <a class="code-function" href="#2341">systemDraw</a> (<span class="code-storage-keyword">const</span> <a class="code-type" href="class_ewol__DrawProperty.html">ewol::DrawProperty</a> & <span class="code-argument">_displayProp</span>);<br/># <span class="code-type" >void</span> <a class="code-function" href="#2343">setScrollingSize</a> (<span class="code-type" >float</span> <span class="code-argument">_nbPixel</span>);<br/># <span class="code-type" >void</span> <a class="code-function" href="#2345">scroolingMode</a> (<span class="code-storage-keyword">enum</span> scrollingMode <span class="code-argument">_newMode</span>);<br/># <span class="code-type" >void</span> <a class="code-function" href="#2347">setMaxSize</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_localSize</span>);<br/># <span class="code-type" >void</span> <a class="code-function" href="#2349">setScrollingPositionDynamic</a> (vec2 <span class="code-argument">_borderWidth</span>,<br/> <span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_currentPosition</span>,<br/> <span class="code-type" >bool</span> <span class="code-argument">_center</span>);<br/># <span class="code-type" >void</span> <a class="code-function" href="#2353">setLimitScrolling</a> (<span class="code-type" >float</span> <span class="code-argument">_poucentageLimit</span>);<br/></pre>
<br/>
<h2>Object Hierarchy:<h2>
<pre>
+<a href="class_ewol__Object.html">ewol::Object</a><br/> +--> +<a href="class_ewol__Widget.html">ewol::Widget</a><br/> +--> ewol::widget::WidgetScrooled<br/> +--> <a href="class_ewol__widget__List.html">ewol::widget::List</a><br/> +--> <a href="class_ewol__widget__ParameterList.html">ewol::widget::ParameterList</a><br/></pre>
<h2>Detail:</h2>
<a id="2325"/><a id="2326"/><h3>m_originScrooled</h3><pre>
# vec2 <span class="code-member">m_originScrooled</span>;<br/></pre>
pixel distance from the origin of the display (Bottum left)<br/>
<br/>
<hr/>
<a id="2327"/><h3>m_maxSize</h3><pre>
# vec2 <span class="code-member">m_maxSize</span>;<br/></pre>
Maximum size of the Widget ==&gt; to display scrollbar<br/>
<br/>
<hr/>
<a id="2331"/><h3>m_limitScrolling</h3><pre>
# <span class="code-type" >float</span> <span class="code-member">m_limitScrolling</span>;<br/></pre>
Mimit scrolling represent the propertion of the minimel scrolling activate (0.2 ==&gt; 20% migt all time be visible)
mode of management of the scrooling<br/>
<br/>
<hr/>
<a id="2333"/><h3>WidgetScrooled</h3><pre>
+ <span class="code-function">WidgetScrooled</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
Scroll Widget main constructor to be herited from an other widget (this is not a stand-alone widget)<br/>
<br/>
<hr/>
<a id="2335"/><h3>~WidgetScrooled</h3><pre>
+ <span class="code-storage-keyword">virtual</span> <span class="code-function">~WidgetScrooled</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
Scroll widget destructor.<br/>
<br/>
<hr/>
<a id="2337"/><h3>onDraw</h3><pre>
# <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <span class="code-function">onDraw</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
Common widget drawing function (called by the drawing thread [Android, X11, ...])<br/>
<br/>
<hr/>
<a id="2339"/><h3>onRegenerateDisplay</h3><pre>
+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <span class="code-function">onRegenerateDisplay</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
Event generated when a redraw is needed<br/>
<br/>
<hr/>
<a id="2341"/><h3>onEventInput</h3><pre>
+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >bool</span> <span class="code-function">onEventInput</span> (<span class="code-storage-keyword">const</span> <a class="code-type" href="class_ewol__event__Input.html">ewol::event::Input</a> & <span class="code-argument">_event</span>);<br/></pre>
Event on an input of this Widget (finger, mouse, stilet)<br/><ul>
<table class="parameter-list">
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_event</span> </td><td> Event properties</td></tr>
<tr><td><b>Return: </b></td><td></td><td>true the event is used&lt;br/&gt;false the event is not used</td></tr></table>
</ul>
<br/>
<hr/>
<a id="2343"/><h3>systemDraw</h3><pre>
+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <span class="code-function">systemDraw</span> (<span class="code-storage-keyword">const</span> <a class="code-type" href="class_ewol__DrawProperty.html">ewol::DrawProperty</a> & <span class="code-argument">_displayProp</span>);<br/></pre>
{SYSTEM} extern interface to request a draw ... (called by the drawing thread [Android, X11, ...])
This function generate a clipping with the viewport openGL system. Like this a widget draw can not draw over an other widget<br/><b>Note:</b> This function is virtual for the scrolled widget, and the more complicated openGl widget<br/> <b>Note:</b> : INTERNAL EWOL SYSTEM<br/> <ul>
<table class="parameter-list">
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_displayProp</span> </td><td> properties of the current display</td></tr>
</table>
</ul>
<br/>
<hr/>
<a id="2345"/><h3>setScrollingSize</h3><pre>
# <span class="code-type" >void</span> <span class="code-function">setScrollingSize</span> (<span class="code-type" >float</span> <span class="code-argument">_nbPixel</span>);<br/></pre>
For mouse event when we have a scrolling UP and dows, specify the number of pixel that we scrooled<br/><ul>
<table class="parameter-list">
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_nbPixel</span> </td><td> number of pixel scrolling</td></tr>
</table>
</ul>
<br/>
<hr/>
<a id="2347"/><h3>scroolingMode</h3><pre>
# <span class="code-type" >void</span> <span class="code-function">scroolingMode</span> (<span class="code-storage-keyword">enum</span> scrollingMode <span class="code-argument">_newMode</span>);<br/></pre>
Specify the mode of scrolling for this windows<br/><ul>
<table class="parameter-list">
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_newMode</span> </td><td> the selected mode for the scrolling...</td></tr>
</table>
</ul>
<br/>
<hr/>
<a id="2349"/><h3>setMaxSize</h3><pre>
# <span class="code-type" >void</span> <span class="code-function">setMaxSize</span> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_localSize</span>);<br/></pre>
set the specific mawimum size of the widget<br/><ul>
<table class="parameter-list">
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_localSize</span> </td><td> new Maximum size</td></tr>
</table>
</ul>
<br/>
<hr/>
<a id="2353"/><h3>setScrollingPositionDynamic</h3><pre>
# <span class="code-type" >void</span> <span class="code-function">setScrollingPositionDynamic</span> (vec2 <span class="code-argument">_borderWidth</span>,<br/> <span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_currentPosition</span>,<br/> <span class="code-type" >bool</span> <span class="code-argument">_center</span>);<br/></pre>
Request a specific position for the scrolling of the current windows.<br/><ul>
<table class="parameter-list">
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_borderWidth</span> </td><td> size of the border that requested the element might not to be</td></tr>
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_currentPosition</span> </td><td> Position that is requested to view</td></tr>
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_center</span> </td><td> True if the position might be at the center of the widget</td></tr>
</table>
</ul>
<br/>
<hr/>
<h3>setLimitScrolling</h3><pre>
# <span class="code-type" >void</span> <span class="code-function">setLimitScrolling</span> (<span class="code-type" >float</span> <span class="code-argument">_poucentageLimit</span>);<br/></pre>
set the scrolling limit when arriving at he end of the widget<br/><ul>
<table class="parameter-list">
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_poucentageLimit</span> </td><td> pourcent of the limit of view nothing in the widget when arriving at the end ...</td></tr>
</table>
</ul>
<br/>
<hr/>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46753803-1', 'heeroyui.github.io');
ga('send', 'pageview');
</script>
</body>
</html>