256 lines
15 KiB
HTML
256 lines
15 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/"> [ 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::compositing::Shaper</h1><hr/><h2>Description:</h2>
|
|
the Shaper system is a basic theme configuration for every widget, it corespond at a background display described by a pool of files<br/><br/>
|
|
<h2>Constructor and Destructor:</h2>
|
|
<pre>
|
|
+ <a class="code-function" href="#4508">Shaper</a> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_shaperName</span>);<br/>+ <a class="code-function" href="#4510">~Shaper</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
<br/>
|
|
<h2>Synopsis:</h2>
|
|
<pre>
|
|
+ <span class="code-type" >void</span> <a class="code-function" href="#4512">draw</a> (<span class="code-type" >bool</span> <span class="code-argument">_disableDepthTest</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#4514">clear</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#4516">changeStatusIn</a> (<span class="code-type" >int32_t</span> <span class="code-argument">_newStatusId</span>);<br/>+ <span class="code-type" >int32_t</span> <a class="code-function" href="#4518">getCurrentDisplayedStatus</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-type" >int32_t</span> <a class="code-function" href="#4520">getNextDisplayedStatus</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-type" >float</span> <a class="code-function" href="#4522">getTransitionStatus</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#4524">periodicCall</a> (<span class="code-storage-keyword">const</span> <a class="code-type" href="class_ewol__event__Time.html">ewol::event::Time</a> & <span class="code-argument">_event</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#4526">setOrigin</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_newOri</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#4528">setSize</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_newSize</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#4530">setInsideSize</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_newInsideSize</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#4532">setInsidePos</a> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_newInsidePos</span>);<br/>+ vec2 <a class="code-function" href="#4534">getPadding</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#4536">setSource</a> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_newFile</span>);<br/>+ <span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <a class="code-function" href="#4538">getSource</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#4540">hasSources</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
<br/>
|
|
<h2>Object Hierarchy:<h2>
|
|
<pre>
|
|
+<a href="class_ewol__Compositing.html">ewol::Compositing</a><br/> +--> ewol::compositing::Shaper<br/></pre>
|
|
<h2>Detail:</h2>
|
|
<a id="4508"/><a id="4510"/><h3>Shaper</h3><pre>
|
|
+ <span class="code-function">Shaper</span> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_shaperName</span>);<br/></pre>
|
|
generic constructor<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_shaperName</span> </td><td> Name of the file that might be loaded</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="4512"/><h3>~Shaper</h3><pre>
|
|
+ <span class="code-function">~Shaper</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
generic destructor<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="4514"/><h3>draw</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">draw</span> (<span class="code-type" >bool</span> <span class="code-argument">_disableDepthTest</span>);<br/></pre>
|
|
draw All the refistered text in the current element on openGL<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="4516"/><h3>clear</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">clear</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
clear alll tre registered element in the current element<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="4518"/><h3>changeStatusIn</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">changeStatusIn</span> (<span class="code-type" >int32_t</span> <span class="code-argument">_newStatusId</span>);<br/></pre>
|
|
change the current status in an other<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_newStatusId</span> </td><td> the next new status requested</td></tr>
|
|
<tr><td><b>Return: </b></td><td></td><td>true The widget must call this fuction periodicly (and redraw itself)<br/>false No need to request the periodic call.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="4520"/><h3>getCurrentDisplayedStatus</h3><pre>
|
|
+ <span class="code-type" >int32_t</span> <span class="code-function">getCurrentDisplayedStatus</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
get the current displayed status of the shaper<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>The Status Id</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="4522"/><h3>getNextDisplayedStatus</h3><pre>
|
|
+ <span class="code-type" >int32_t</span> <span class="code-function">getNextDisplayedStatus</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
get the next displayed status of the shaper<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>The next status Id (-1 if no status in next)</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="4524"/><h3>getTransitionStatus</h3><pre>
|
|
+ <span class="code-type" >float</span> <span class="code-function">getTransitionStatus</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
get the current trasion status<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>value of the transition status (0.0f when no activity)</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="4526"/><h3>periodicCall</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">periodicCall</span> (<span class="code-storage-keyword">const</span> <a class="code-type" href="class_ewol__event__Time.html">ewol::event::Time</a> & <span class="code-argument">_event</span>);<br/></pre>
|
|
Same as the widfget periodic call (this is for change display)<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_event</span> </td><td> The current time of the call.</td></tr>
|
|
<tr><td><b>Return: </b></td><td></td><td>true The widget must call this fuction periodicly (and redraw itself)<br/>false No need to request the periodic call.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="4528"/><h3>setOrigin</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setOrigin</span> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_newOri</span>);<br/></pre>
|
|
set the widget origin (needed fot the display)<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_newOri</span> </td><td> : the new widget origin</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="4530"/><h3>setSize</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setSize</span> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_newSize</span>);<br/></pre>
|
|
set the widget size (needed fot the display)<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_newSize</span> </td><td> : the new widget size</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="4532"/><h3>setInsideSize</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setInsideSize</span> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_newInsideSize</span>);<br/></pre>
|
|
set the internal widget size<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_newInsidePos</span> </td><td> : the subelement size.</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="4534"/><h3>setInsidePos</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setInsidePos</span> (<span class="code-storage-keyword">const</span> vec2 & <span class="code-argument">_newInsidePos</span>);<br/></pre>
|
|
set the internal widget position<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_newInsidePos</span> </td><td> : the subelement position</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="4536"/><h3>getPadding</h3><pre>
|
|
+ vec2 <span class="code-function">getPadding</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
get the padding declared by the user in the config file<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>the padding property</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="4538"/><h3>setSource</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setSource</span> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_newFile</span>);<br/></pre>
|
|
change the shaper Source<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_newFile</span> </td><td> New file of the shaper</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="4540"/><h3>getSource</h3><pre>
|
|
+ <span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-function">getSource</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
get the shaper file Source<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>the shapper file name</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<h3>hasSources</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">hasSources</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
Sometimes the user declare an image but not allocate the ressources all the time, this is to know it ..<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>the validity od the resources.</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>
|