60 |
jpm |
1 |
<html>
|
|
|
2 |
<head>
|
|
|
3 |
<title>Documentation</title>
|
|
|
4 |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
|
|
|
5 |
<link rel='stylesheet' href='style.css' />
|
|
|
6 |
</head>
|
|
|
7 |
|
|
|
8 |
<body>
|
|
|
9 |
<div align='center'>
|
|
|
10 |
<table cellpadding='0' cellspacing='0' id='contenu' class='round' style='width: 80%; margin-bottom: 20px'>
|
|
|
11 |
<tr>
|
|
|
12 |
<td class='borderhg'> </td>
|
|
|
13 |
<td class='borderh'> </td>
|
|
|
14 |
<td class='cornerhd'></td>
|
|
|
15 |
</tr>
|
|
|
16 |
<tr>
|
|
|
17 |
<td class='borderg'> </td>
|
|
|
18 |
<td><a id="top"></a><h2> Class Shape</h2><div class="description">
|
|
|
19 |
<p>La classe <a href="Shape.html">Shape</a> permet de représenter toutes sortes de formes sur Artichow.</p>
|
|
|
20 |
</div><div class="inherit">
|
|
|
21 |
Les classes suivantes dérivent de Shape :
|
|
|
22 |
<ul>
|
|
|
23 |
<li><a href="Point.html">Point</a></li>
|
|
|
24 |
<li><a href="Line.html">Line</a></li>
|
|
|
25 |
<li><a href="Polygon.html">Polygon</a></li>
|
|
|
26 |
</ul>
|
|
|
27 |
</div><ul class="links"><li><a href="index.html">Retourner voir la liste de toutes les classes</a></li></ul><h2>Méthodes et propriétés</h2><ul class="constants">
|
|
|
28 |
<li>
|
|
|
29 |
<span class="access">const</span> <span class="type">int</span> <a href="Shape.html#constant.SOLID">SOLID</a> := <span class="default">1</span>
|
|
|
30 |
</li>
|
|
|
31 |
<li>
|
|
|
32 |
<span class="access">const</span> <span class="type">int</span> <a href="Shape.html#constant.DOTTED">DOTTED</a> := <span class="default">2</span>
|
|
|
33 |
</li>
|
|
|
34 |
<li>
|
|
|
35 |
<span class="access">const</span> <span class="type">int</span> <a href="Shape.html#constant.DASHED">DASHED</a> := <span class="default">3</span>
|
|
|
36 |
</li>
|
|
|
37 |
</ul><ul class="properties">
|
|
|
38 |
<li>
|
|
|
39 |
<span class="access">public</span> <span class="type">int</span> <a href="Shape.html#property.style"><span class="argument">$style</span></a>
|
|
|
40 |
</li>
|
|
|
41 |
<li>
|
|
|
42 |
<span class="access">public</span> <span class="type">int</span> <a href="Shape.html#property.thickness"><span class="argument">$thickness</span></a>
|
|
|
43 |
</li>
|
|
|
44 |
<li>
|
|
|
45 |
<span class="access">protected</span> <span class="type">bool</span> <a href="Shape.html#property.hide"><span class="argument">$hide</span></a>
|
|
|
46 |
</li>
|
|
|
47 |
</ul><ul class="methods">
|
|
|
48 |
<li>
|
|
|
49 |
<span class="access">public</span> <a href="Shape.html#method.__construct">__construct</a>(<span class="type">float</span> <span class="argument">$x</span>, <span class="type">float</span> <span class="argument">$y</span>)
|
|
|
50 |
</li>
|
|
|
51 |
<li>
|
|
|
52 |
<span class="access">public</span> <a href="Shape.html#method.setStyle">setStyle</a>(<span class="type">int</span> <span class="argument">$style</span>)
|
|
|
53 |
</li>
|
|
|
54 |
<li>
|
|
|
55 |
<span class="access">public</span> <span class="type">int</span> <a href="Shape.html#method.getStyle">getStyle</a>()
|
|
|
56 |
</li>
|
|
|
57 |
<li>
|
|
|
58 |
<span class="access">public</span> <a href="Shape.html#method.setThickness">setThickness</a>(<span class="type">int</span> <span class="argument">$thickness</span>)
|
|
|
59 |
</li>
|
|
|
60 |
<li>
|
|
|
61 |
<span class="access">public</span> <span class="type">int</span> <a href="Shape.html#method.getThickness">getThickness</a>()
|
|
|
62 |
</li>
|
|
|
63 |
<li>
|
|
|
64 |
<span class="access">public</span> <a href="Shape.html#method.hide">hide</a>(<span class="type">bool</span> <span class="argument">$hide</span>)
|
|
|
65 |
</li>
|
|
|
66 |
<li>
|
|
|
67 |
<span class="access">public</span> <a href="Shape.html#method.show">show</a>(<span class="type">bool</span> <span class="argument">$show</span>)
|
|
|
68 |
</li>
|
|
|
69 |
<li>
|
|
|
70 |
<span class="access">public</span> <span class="type">bool</span> <a href="Shape.html#method.isHidden">isHidden</a>()
|
|
|
71 |
</li>
|
|
|
72 |
</ul><h2>Documentation</h2><ul class="doc">
|
|
|
73 |
<li class="constant">
|
|
|
74 |
<a id="constant.SOLID"></a><span class="access">const</span> <span class="type">int</span> <a href="Shape.html#constant.SOLID">SOLID</a> := <span class="default">1</span><div class="description">
|
|
|
75 |
Désigne une ligne continue.
|
|
|
76 |
</div>
|
|
|
77 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
78 |
</li>
|
|
|
79 |
<li class="constant">
|
|
|
80 |
<a id="constant.DOTTED"></a><span class="access">const</span> <span class="type">int</span> <a href="Shape.html#constant.DOTTED">DOTTED</a> := <span class="default">2</span><div class="description">
|
|
|
81 |
Désigne une ligne pointillée.
|
|
|
82 |
</div>
|
|
|
83 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
84 |
</li>
|
|
|
85 |
<li class="constant">
|
|
|
86 |
<a id="constant.DASHED"></a><span class="access">const</span> <span class="type">int</span> <a href="Shape.html#constant.DASHED">DASHED</a> := <span class="default">3</span><div class="description">
|
|
|
87 |
Désigne une ligne avec de larges pointillés.
|
|
|
88 |
</div>
|
|
|
89 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
90 |
</li>
|
|
|
91 |
<li class="property">
|
|
|
92 |
<a id="property.style"></a><span class="access">public</span> <span class="type">int</span> <a href="Shape.html#property.style"><span class="argument">$style</span></a><div class="description">
|
|
|
93 |
Décrit le style du pourtour de la forme. Peut être <a href="Shape.html#constant.DOTTED">Shape::DOTTED</a>, <a href="Shape.html#constant.SOLID">Shape::SOLID</a> ou <a href="Shape.html#constant.DASHED">Shape::DASHED</a>.
|
|
|
94 |
</div>
|
|
|
95 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
96 |
</li>
|
|
|
97 |
<li class="property">
|
|
|
98 |
<a id="property.thickness"></a><span class="access">public</span> <span class="type">int</span> <a href="Shape.html#property.thickness"><span class="argument">$thickness</span></a><div class="description">
|
|
|
99 |
L'épaisseur du pourtour de la forme.
|
|
|
100 |
</div>
|
|
|
101 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
102 |
</li>
|
|
|
103 |
<li class="property">
|
|
|
104 |
<a id="property.hide"></a><span class="access">protected</span> <span class="type">bool</span> <a href="Shape.html#property.hide"><span class="argument">$hide</span></a><div class="description">
|
|
|
105 |
Déterminer si la forme doit être cachée ou non.
|
|
|
106 |
</div>
|
|
|
107 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
108 |
</li>
|
|
|
109 |
<li class="method">
|
|
|
110 |
<a id="method.__construct"></a><span class="access">public</span> <a href="Shape.html#method.__construct">__construct</a>(<span class="type">float</span> <span class="argument">$x</span>, <span class="type">float</span> <span class="argument">$y</span>)
|
|
|
111 |
<div class="description">
|
|
|
112 |
Déclare un nouveau point avec des coordonnées x et y.
|
|
|
113 |
</div>
|
|
|
114 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
115 |
</li>
|
|
|
116 |
<li class="method">
|
|
|
117 |
<a id="method.setStyle"></a><span class="access">public</span> <a href="Shape.html#method.setStyle">setStyle</a>(<span class="type">int</span> <span class="argument">$style</span>)
|
|
|
118 |
<div class="description">
|
|
|
119 |
Change le style du pourtour de la forme. Peut être <a href="Shape.html#constant.SOLID">Shape::SOLID</a> pour un pourtour continu, <a href="Shape.html#constant.DOTTED">Shape::DOTTED</a> pour un pourtour pointillé ou encore <a href="Shape.html#constant.DASHED">Shape::DASHED</a>.
|
|
|
120 |
</div>
|
|
|
121 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
122 |
</li>
|
|
|
123 |
<li class="method">
|
|
|
124 |
<a id="method.getStyle"></a><span class="access">public</span> <span class="type">int</span> <a href="Shape.html#method.getStyle">getStyle</a>()
|
|
|
125 |
<div class="description">
|
|
|
126 |
Retourne le style actuel de la forme.
|
|
|
127 |
</div>
|
|
|
128 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
129 |
</li>
|
|
|
130 |
<li class="method">
|
|
|
131 |
<a id="method.setThickness"></a><span class="access">public</span> <a href="Shape.html#method.setThickness">setThickness</a>(<span class="type">int</span> <span class="argument">$thickness</span>)
|
|
|
132 |
<div class="description">
|
|
|
133 |
Change l'épaisseur du pourtour de la forme. Cette épaisseur doit être donnée en pixels.
|
|
|
134 |
</div>
|
|
|
135 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
136 |
</li>
|
|
|
137 |
<li class="method">
|
|
|
138 |
<a id="method.getThickness"></a><span class="access">public</span> <span class="type">int</span> <a href="Shape.html#method.getThickness">getThickness</a>()
|
|
|
139 |
<div class="description">
|
|
|
140 |
Retourne l'épaisseur du pourtour de la forme.
|
|
|
141 |
</div>
|
|
|
142 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
143 |
</li>
|
|
|
144 |
<li class="method">
|
|
|
145 |
<a id="method.hide"></a><span class="access">public</span> <a href="Shape.html#method.hide">hide</a>(<span class="type">bool</span> <span class="argument">$hide</span>)
|
|
|
146 |
<div class="description">
|
|
|
147 |
Détermine si la forme doit être cachée ou non.
|
|
|
148 |
</div>
|
|
|
149 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
150 |
</li>
|
|
|
151 |
<li class="method">
|
|
|
152 |
<a id="method.show"></a><span class="access">public</span> <a href="Shape.html#method.show">show</a>(<span class="type">bool</span> <span class="argument">$show</span>)
|
|
|
153 |
<div class="description">
|
|
|
154 |
Détermine si la forme doit être affichée ou non.
|
|
|
155 |
</div>
|
|
|
156 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
157 |
</li>
|
|
|
158 |
<li class="method">
|
|
|
159 |
<a id="method.isHidden"></a><span class="access">public</span> <span class="type">bool</span> <a href="Shape.html#method.isHidden">isHidden</a>()
|
|
|
160 |
<div class="description">
|
|
|
161 |
Retourne TRUE si la forme est cachée, FALSE si elle est visible.
|
|
|
162 |
</div>
|
|
|
163 |
<div class="description-bottom"><a href="Shape.html#top">Remonter</a></div>
|
|
|
164 |
</li>
|
|
|
165 |
</ul>
|
|
|
166 |
</td>
|
|
|
167 |
<td class='borderd'> </td>
|
|
|
168 |
</tr>
|
|
|
169 |
<tr>
|
|
|
170 |
<td class='cornerbg'></td>
|
|
|
171 |
<td class='borderb'> </td>
|
|
|
172 |
<td class='cornerbd'></td>
|
|
|
173 |
</tr>
|
|
|
174 |
</table>
|
|
|
175 |
</div>
|
|
|
176 |
</body>
|
|
|
177 |
</html>
|