SuperSpaceInvaderTurboApoca.../doc/SAE102-SpaceInvaders/html/da/d18/shape_8h_source.html

150 lines
16 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SUPER Space invader : Turbo edition DX - VS GOD: lib_headers/mingl/shape/shape.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.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" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="../../LOGO.png"/></td>
<td id="projectalign">
<div id="projectname">SUPER Space invader : Turbo edition DX - VS GOD<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">A simple space invader ripoff</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('da/d18/shape_8h_source.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- 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 class="header">
<div class="headertitle"><div class="title">shape.h</div></div>
</div><!--header-->
<div class="contents">
<a href="../../da/d18/shape_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#ifndef FIG2_H</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#define FIG2_H</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include &quot;../graphics/idrawable.h&quot;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include &quot;../graphics/rgbacolor.h&quot;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include &quot;../graphics/vec2d.h&quot;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d6/d1e/namespacens_shape.html">nsShape</a></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span>{</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="../../d2/d15/classns_shape_1_1_shape.html"> 29</a></span><span class="keyword">class </span><a class="code hl_class" href="../../d2/d15/classns_shape_1_1_shape.html">Shape</a>: <span class="keyword">public</span> <a class="code hl_class" href="../../db/d29/classns_graphics_1_1_i_drawable.html">nsGraphics::IDrawable</a></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span>{</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="../../d2/d15/classns_shape_1_1_shape.html#a879f450649c23c83dee576234703951d"> 39</a></span> <a class="code hl_function" href="../../d2/d15/classns_shape_1_1_shape.html#a879f450649c23c83dee576234703951d">Shape</a>(<span class="keyword">const</span> <a class="code hl_class" href="../../dc/d25/classns_graphics_1_1_r_g_b_acolor.html">nsGraphics::RGBAcolor</a>&amp; fillColor, <span class="keyword">const</span> <a class="code hl_class" href="../../dc/d25/classns_graphics_1_1_r_g_b_acolor.html">nsGraphics::RGBAcolor</a>&amp; borderColor);</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="../../d2/d15/classns_shape_1_1_shape.html#aaa22752af0d45c4e219e3870baf899d4"> 45</a></span> <span class="keyword">virtual</span> <a class="code hl_function" href="../../d2/d15/classns_shape_1_1_shape.html#aaa22752af0d45c4e219e3870baf899d4">~Shape</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="../../d2/d15/classns_shape_1_1_shape.html#a8efbd1ac47497b188edeb019557ef754"> 51</a></span> <span class="keyword">const</span> <a class="code hl_class" href="../../dc/d25/classns_graphics_1_1_r_g_b_acolor.html">nsGraphics::RGBAcolor</a>&amp; <a class="code hl_function" href="../../d2/d15/classns_shape_1_1_shape.html#a8efbd1ac47497b188edeb019557ef754">getFillColor</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="../../d2/d15/classns_shape_1_1_shape.html#aa0e9b22c076b83c4d5014b0213e5ce07"> 57</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d15/classns_shape_1_1_shape.html#aa0e9b22c076b83c4d5014b0213e5ce07">setFillColor</a>(<span class="keyword">const</span> <a class="code hl_class" href="../../dc/d25/classns_graphics_1_1_r_g_b_acolor.html">nsGraphics::RGBAcolor</a>&amp; fillColor);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="../../d2/d15/classns_shape_1_1_shape.html#aca75f4b06e8e5b04d0271d191210299d"> 63</a></span> <span class="keyword">const</span> <a class="code hl_class" href="../../dc/d25/classns_graphics_1_1_r_g_b_acolor.html">nsGraphics::RGBAcolor</a>&amp; <a class="code hl_function" href="../../d2/d15/classns_shape_1_1_shape.html#aca75f4b06e8e5b04d0271d191210299d">getBorderColor</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="../../d2/d15/classns_shape_1_1_shape.html#a48821100aa1856f188bdba257505adc3"> 69</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d15/classns_shape_1_1_shape.html#a48821100aa1856f188bdba257505adc3">setBorderColor</a>(<span class="keyword">const</span> <a class="code hl_class" href="../../dc/d25/classns_graphics_1_1_r_g_b_acolor.html">nsGraphics::RGBAcolor</a>&amp; borderColor);</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span><span class="keyword">protected</span>:</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="../../d2/d15/classns_shape_1_1_shape.html#a68841e117adddc95734dcbaa62f68832"> 75</a></span> <a class="code hl_class" href="../../dc/d25/classns_graphics_1_1_r_g_b_acolor.html">nsGraphics::RGBAcolor</a> <a class="code hl_variable" href="../../d2/d15/classns_shape_1_1_shape.html#a68841e117adddc95734dcbaa62f68832">m_fillColor</a>;</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="../../d2/d15/classns_shape_1_1_shape.html#a0444014e3ee0fa1e6ba5295e530a4f82"> 80</a></span> <a class="code hl_class" href="../../dc/d25/classns_graphics_1_1_r_g_b_acolor.html">nsGraphics::RGBAcolor</a> <a class="code hl_variable" href="../../d2/d15/classns_shape_1_1_shape.html#a0444014e3ee0fa1e6ba5295e530a4f82">m_borderColor</a>;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span>}; <span class="comment">// class Shape</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span>} <span class="comment">// namespace nsShape</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span><span class="preprocessor">#endif </span><span class="comment">// FIG2_H</span></div>
<div class="ttc" id="aclassns_graphics_1_1_i_drawable_html"><div class="ttname"><a href="../../db/d29/classns_graphics_1_1_i_drawable.html">nsGraphics::IDrawable</a></div><div class="ttdoc">Interface pour un objet affichable.</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d02/idrawable_8h_source.html#l00029">idrawable.h:30</a></div></div>
<div class="ttc" id="aclassns_graphics_1_1_r_g_b_acolor_html"><div class="ttname"><a href="../../dc/d25/classns_graphics_1_1_r_g_b_acolor.html">nsGraphics::RGBAcolor</a></div><div class="ttdoc">Classe représentant un couleur RGBA8888.</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/rgbacolor_8h_source.html#l00025">rgbacolor.h:26</a></div></div>
<div class="ttc" id="aclassns_shape_1_1_shape_html"><div class="ttname"><a href="../../d2/d15/classns_shape_1_1_shape.html">nsShape::Shape</a></div><div class="ttdoc">Classe de base pour une forme.</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d18/shape_8h_source.html#l00029">shape.h:30</a></div></div>
<div class="ttc" id="aclassns_shape_1_1_shape_html_a0444014e3ee0fa1e6ba5295e530a4f82"><div class="ttname"><a href="../../d2/d15/classns_shape_1_1_shape.html#a0444014e3ee0fa1e6ba5295e530a4f82">nsShape::Shape::m_borderColor</a></div><div class="ttdeci">nsGraphics::RGBAcolor m_borderColor</div><div class="ttdoc">m_borderColor : Couleur de bord</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d18/shape_8h_source.html#l00080">shape.h:80</a></div></div>
<div class="ttc" id="aclassns_shape_1_1_shape_html_a48821100aa1856f188bdba257505adc3"><div class="ttname"><a href="../../d2/d15/classns_shape_1_1_shape.html#a48821100aa1856f188bdba257505adc3">nsShape::Shape::setBorderColor</a></div><div class="ttdeci">void setBorderColor(const nsGraphics::RGBAcolor &amp;borderColor)</div><div class="ttdoc">Règle la couleur de bord.</div></div>
<div class="ttc" id="aclassns_shape_1_1_shape_html_a68841e117adddc95734dcbaa62f68832"><div class="ttname"><a href="../../d2/d15/classns_shape_1_1_shape.html#a68841e117adddc95734dcbaa62f68832">nsShape::Shape::m_fillColor</a></div><div class="ttdeci">nsGraphics::RGBAcolor m_fillColor</div><div class="ttdoc">m_fillColor : Couleur de remplissage</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d18/shape_8h_source.html#l00075">shape.h:75</a></div></div>
<div class="ttc" id="aclassns_shape_1_1_shape_html_a879f450649c23c83dee576234703951d"><div class="ttname"><a href="../../d2/d15/classns_shape_1_1_shape.html#a879f450649c23c83dee576234703951d">nsShape::Shape::Shape</a></div><div class="ttdeci">Shape(const nsGraphics::RGBAcolor &amp;fillColor, const nsGraphics::RGBAcolor &amp;borderColor)</div><div class="ttdoc">Constructeur pour la classe Shape.</div></div>
<div class="ttc" id="aclassns_shape_1_1_shape_html_a8efbd1ac47497b188edeb019557ef754"><div class="ttname"><a href="../../d2/d15/classns_shape_1_1_shape.html#a8efbd1ac47497b188edeb019557ef754">nsShape::Shape::getFillColor</a></div><div class="ttdeci">const nsGraphics::RGBAcolor &amp; getFillColor() const</div><div class="ttdoc">Retourne la couleur de remplissage.</div></div>
<div class="ttc" id="aclassns_shape_1_1_shape_html_aa0e9b22c076b83c4d5014b0213e5ce07"><div class="ttname"><a href="../../d2/d15/classns_shape_1_1_shape.html#aa0e9b22c076b83c4d5014b0213e5ce07">nsShape::Shape::setFillColor</a></div><div class="ttdeci">void setFillColor(const nsGraphics::RGBAcolor &amp;fillColor)</div><div class="ttdoc">Règle la couleur de remplissage.</div></div>
<div class="ttc" id="aclassns_shape_1_1_shape_html_aaa22752af0d45c4e219e3870baf899d4"><div class="ttname"><a href="../../d2/d15/classns_shape_1_1_shape.html#aaa22752af0d45c4e219e3870baf899d4">nsShape::Shape::~Shape</a></div><div class="ttdeci">virtual ~Shape()=default</div><div class="ttdoc">Destructeur virtuel pour la classe Shape.</div></div>
<div class="ttc" id="aclassns_shape_1_1_shape_html_aca75f4b06e8e5b04d0271d191210299d"><div class="ttname"><a href="../../d2/d15/classns_shape_1_1_shape.html#aca75f4b06e8e5b04d0271d191210299d">nsShape::Shape::getBorderColor</a></div><div class="ttdeci">const nsGraphics::RGBAcolor &amp; getBorderColor() const</div><div class="ttdoc">Retourne la couleur de bord.</div></div>
<div class="ttc" id="anamespacens_shape_html"><div class="ttname"><a href="../../d6/d1e/namespacens_shape.html">nsShape</a></div><div class="ttdoc">Espace de nom pour différentes formes.</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/db6/circle_8h_source.html#l00018">circle.h:19</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_3d4ff65f2d65a57155ab8b024be73ea4.html">lib_headers</a></li><li class="navelem"><a class="el" href="../../dir_6048b2af5c015aac2e4ac6ea68798910.html">mingl</a></li><li class="navelem"><a class="el" href="../../dir_a4477655e1244a3313a448fa88b6ead9.html">shape</a></li><li class="navelem"><a class="el" href="../../da/d18/shape_8h.html">shape.h</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
</ul>
</div>
</body>
</html>