ewol/gravity_8hpp_source.html

170 lines
20 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/gravity.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> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">gravity.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="gravity_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;<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/__vector2__d__8hpp.html">etk/math/Vector2D.hpp</a>&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceewol.html">ewol</a> {</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599"> 16</a></span>&#160; <span class="keyword">enum</span> <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599">gravity</a> {</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599ab70c82b23bab1fb2d82a1094ed3f3cb6"> 17</a></span>&#160; <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599ab70c82b23bab1fb2d82a1094ed3f3cb6">gravity_center</a> = 0x00, </div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a74369e2589984fa87e24dad955eca446"> 18</a></span>&#160; <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a74369e2589984fa87e24dad955eca446">gravity_top</a> = 0x01, </div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599af9a40fd062dcf29e03c0495df5f07968"> 19</a></span>&#160; <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599af9a40fd062dcf29e03c0495df5f07968">gravity_buttom</a> = 0x02, </div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a6b4e702492fc7343143303ae0a09643f"> 20</a></span>&#160; <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a6b4e702492fc7343143303ae0a09643f">gravity_right</a> = 0x04, </div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599ac10cd4e664380c90cd9bb06118642965"> 21</a></span>&#160; <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599ac10cd4e664380c90cd9bb06118642965">gravity_left</a> = 0x08, </div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599aa3e1cc01a33c683a8155191162391695"> 22</a></span>&#160; <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599aa3e1cc01a33c683a8155191162391695">gravity_topRight</a> = <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a74369e2589984fa87e24dad955eca446">gravity_top</a>|<a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a6b4e702492fc7343143303ae0a09643f">gravity_right</a>, </div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599aa2e2a9042a871c18206b4be3897293f7"> 23</a></span>&#160; <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599aa2e2a9042a871c18206b4be3897293f7">gravity_topLeft</a> = <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a74369e2589984fa87e24dad955eca446">gravity_top</a>|<a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599ac10cd4e664380c90cd9bb06118642965">gravity_left</a>, </div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a6e68d371f0cc4b8eac3b91aa69eb0db0"> 24</a></span>&#160; <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a6e68d371f0cc4b8eac3b91aa69eb0db0">gravity_buttomRight</a> = <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599af9a40fd062dcf29e03c0495df5f07968">gravity_buttom</a>|<a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a6b4e702492fc7343143303ae0a09643f">gravity_right</a>, </div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a451055956a47d84d4fa82724ca8a0463"> 25</a></span>&#160; <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a451055956a47d84d4fa82724ca8a0463">gravity_buttomLeft</a> = <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599af9a40fd062dcf29e03c0495df5f07968">gravity_buttom</a>|<a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599ac10cd4e664380c90cd9bb06118642965">gravity_left</a>, </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; };</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; std::ostream&amp; operator &lt;&lt;(std::ostream&amp; _os, <span class="keyword">const</span> <span class="keyword">enum</span> <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599">ewol::gravity</a> _obj);</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; std::string gravityToString(<span class="keyword">const</span> <span class="keyword">enum</span> <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599">ewol::gravity</a> _obj);</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <span class="keyword">enum</span> <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599">ewol::gravity</a> stringToGravity(<span class="keyword">const</span> std::string&amp; _obj);</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</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> gravityGenerateDelta(<span class="keyword">const</span> <span class="keyword">enum</span> <a class="code" href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599">ewol::gravity</a> _gravity, <span class="keyword">const</span> <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>&amp; _deltas);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;}</div><div class="ttc" id="gravity_8hpp_html_a943bfee14201691b5140be81b2aeb599ab70c82b23bab1fb2d82a1094ed3f3cb6"><div class="ttname"><a href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599ab70c82b23bab1fb2d82a1094ed3f3cb6">ewol::gravity_center</a></div><div class="ttdoc">gravity is in center </div><div class="ttdef"><b>Definition:</b> gravity.hpp:17</div></div>
<div class="ttc" id="gravity_8hpp_html_a943bfee14201691b5140be81b2aeb599a451055956a47d84d4fa82724ca8a0463"><div class="ttname"><a href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a451055956a47d84d4fa82724ca8a0463">ewol::gravity_buttomLeft</a></div><div class="ttdoc">gravity is in buttom-left </div><div class="ttdef"><b>Definition:</b> gravity.hpp:25</div></div>
<div class="ttc" id="gravity_8hpp_html_a943bfee14201691b5140be81b2aeb599a74369e2589984fa87e24dad955eca446"><div class="ttname"><a href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a74369e2589984fa87e24dad955eca446">ewol::gravity_top</a></div><div class="ttdoc">gravity is in top </div><div class="ttdef"><b>Definition:</b> gravity.hpp:18</div></div>
<div class="ttc" id="__vector2__d__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/__vector2__d__8hpp.html">Vector2D.hpp</a></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="gravity_8hpp_html_a943bfee14201691b5140be81b2aeb599ac10cd4e664380c90cd9bb06118642965"><div class="ttname"><a href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599ac10cd4e664380c90cd9bb06118642965">ewol::gravity_left</a></div><div class="ttdoc">gravity is in left </div><div class="ttdef"><b>Definition:</b> gravity.hpp:21</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="gravity_8hpp_html_a943bfee14201691b5140be81b2aeb599"><div class="ttname"><a href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599">ewol::gravity</a></div><div class="ttdeci">gravity</div><div class="ttdoc">Gravity of the widget property . </div><div class="ttdef"><b>Definition:</b> gravity.hpp:16</div></div>
<div class="ttc" id="gravity_8hpp_html_a943bfee14201691b5140be81b2aeb599a6e68d371f0cc4b8eac3b91aa69eb0db0"><div class="ttname"><a href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a6e68d371f0cc4b8eac3b91aa69eb0db0">ewol::gravity_buttomRight</a></div><div class="ttdoc">gravity is in buttom-right </div><div class="ttdef"><b>Definition:</b> gravity.hpp:24</div></div>
<div class="ttc" id="gravity_8hpp_html_a943bfee14201691b5140be81b2aeb599aa3e1cc01a33c683a8155191162391695"><div class="ttname"><a href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599aa3e1cc01a33c683a8155191162391695">ewol::gravity_topRight</a></div><div class="ttdoc">gravity is in top-right </div><div class="ttdef"><b>Definition:</b> gravity.hpp:22</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="gravity_8hpp_html_a943bfee14201691b5140be81b2aeb599af9a40fd062dcf29e03c0495df5f07968"><div class="ttname"><a href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599af9a40fd062dcf29e03c0495df5f07968">ewol::gravity_buttom</a></div><div class="ttdoc">gravity is in buttom </div><div class="ttdef"><b>Definition:</b> gravity.hpp:19</div></div>
<div class="ttc" id="gravity_8hpp_html_a943bfee14201691b5140be81b2aeb599a6b4e702492fc7343143303ae0a09643f"><div class="ttname"><a href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599a6b4e702492fc7343143303ae0a09643f">ewol::gravity_right</a></div><div class="ttdoc">gravity is in right </div><div class="ttdef"><b>Definition:</b> gravity.hpp:20</div></div>
<div class="ttc" id="gravity_8hpp_html_a943bfee14201691b5140be81b2aeb599aa2e2a9042a871c18206b4be3897293f7"><div class="ttname"><a href="gravity_8hpp.html#a943bfee14201691b5140be81b2aeb599aa2e2a9042a871c18206b4be3897293f7">ewol::gravity_topLeft</a></div><div class="ttdoc">gravity is in top-left </div><div class="ttdef"><b>Definition:</b> gravity.hpp:23</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>