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 Font</h2><div class="description">
|
|
|
19 |
<p>
|
|
|
20 |
La classe abstraite <a href="Font.html">Font</a> permet de gérer les polices de manière uniforme sur Artichow.
|
|
|
21 |
</p>
|
|
|
22 |
</div><div class="inherit">
|
|
|
23 |
Les classes suivantes dérivent de Font :
|
|
|
24 |
<ul>
|
|
|
25 |
<li><a href="PHPFont.html">PHPFont</a></li>
|
|
|
26 |
<li><a href="FileFont.html">FileFont</a></li>
|
|
|
27 |
</ul>
|
|
|
28 |
</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="methods">
|
|
|
29 |
<li>
|
|
|
30 |
<span class="access">public</span> <a href="Font.html#method.__construct">__construct</a>()
|
|
|
31 |
</li>
|
|
|
32 |
<li>
|
|
|
33 |
<span class="access">public</span> <a href="Font.html#method.draw">draw</a>(<a href="Driver.html"><span class="type">Driver</span></a> <span class="argument">$driver</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$point</span>, <a href="Text.html"><span class="type">Text</span></a> <span class="argument">$text</span>, <span class="type">int</span> <span class="argument">$width</span> := <span class="default">NULL</span>)
|
|
|
34 |
</li>
|
|
|
35 |
<li>
|
|
|
36 |
<span class="access">public</span> <span class="type">float</span> <a href="Font.html#method.getTextWidth">getTextWidth</a>(<a href="Text.html"><span class="type">Text</span></a> <span class="argument">$text</span>)
|
|
|
37 |
</li>
|
|
|
38 |
<li>
|
|
|
39 |
<span class="access">public</span> <span class="type">float</span> <a href="Font.html#method.getTextHeight">getTextHeight</a>(<a href="Text.html"><span class="type">Text</span></a> <span class="argument">$text</span>)
|
|
|
40 |
</li>
|
|
|
41 |
</ul><h2>Documentation</h2><ul class="doc">
|
|
|
42 |
<li class="method">
|
|
|
43 |
<a id="method.__construct"></a><span class="access">public</span> <a href="Font.html#method.__construct">__construct</a>()
|
|
|
44 |
<div class="description">
|
|
|
45 |
Construit la police.
|
|
|
46 |
</div>
|
|
|
47 |
<div class="description-bottom"><a href="Font.html#top">Remonter</a></div>
|
|
|
48 |
</li>
|
|
|
49 |
<li class="method">
|
|
|
50 |
<a id="method.draw"></a><span class="access">public</span> <a href="Font.html#method.draw">draw</a>(<a href="Driver.html"><span class="type">Driver</span></a> <span class="argument">$driver</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$point</span>, <a href="Text.html"><span class="type">Text</span></a> <span class="argument">$text</span>, <span class="type">int</span> <span class="argument">$width</span> := <span class="default">NULL</span>)
|
|
|
51 |
<div class="description">
|
|
|
52 |
Dessine avec la police courante le texte $text.
|
|
|
53 |
Le pilote $driver sera utilisé pour le dessin tandis que le texte sera positionné au point $point.
|
|
|
54 |
Le paramètre $width permet de spécifier la largeur maximale en pixels de la boîte de texte.
|
|
|
55 |
</div>
|
|
|
56 |
<div class="description-bottom"><a href="Font.html#top">Remonter</a></div>
|
|
|
57 |
</li>
|
|
|
58 |
<li class="method">
|
|
|
59 |
<a id="method.getTextWidth"></a><span class="access">public</span> <span class="type">float</span> <a href="Font.html#method.getTextWidth">getTextWidth</a>(<a href="Text.html"><span class="type">Text</span></a> <span class="argument">$text</span>)
|
|
|
60 |
<ul class="version"><li>
|
|
|
61 |
Supprimé à partir d'Artichow 1.1</li></ul>
|
|
|
62 |
<div class="description">
|
|
|
63 |
Retourne la largeur en pixels occupée par l'objet <a href="Text.html">Text</a> $text.
|
|
|
64 |
<div class="see">
|
|
|
65 |
Voir aussi :
|
|
|
66 |
<ul><li><a href="Driver.html#method.getTextWidth">Driver::getTextWidth()</a></li></ul>
|
|
|
67 |
</div>
|
|
|
68 |
</div>
|
|
|
69 |
<div class="description-bottom"><a href="Font.html#top">Remonter</a></div>
|
|
|
70 |
</li>
|
|
|
71 |
<li class="method">
|
|
|
72 |
<a id="method.getTextHeight"></a><span class="access">public</span> <span class="type">float</span> <a href="Font.html#method.getTextHeight">getTextHeight</a>(<a href="Text.html"><span class="type">Text</span></a> <span class="argument">$text</span>)
|
|
|
73 |
<ul class="version"><li>
|
|
|
74 |
Supprimé à partir d'Artichow 1.1</li></ul>
|
|
|
75 |
<div class="description">
|
|
|
76 |
Retourne la hauteur en pixels occupée par l'objet <a href="Text.html">Text</a> $text.
|
|
|
77 |
<div class="see">
|
|
|
78 |
Voir aussi :
|
|
|
79 |
<ul><li><a href="Driver.html#method.getTextHeight">Driver::getTextHeight()</a></li></ul>
|
|
|
80 |
</div>
|
|
|
81 |
</div>
|
|
|
82 |
<div class="description-bottom"><a href="Font.html#top">Remonter</a></div>
|
|
|
83 |
</li>
|
|
|
84 |
</ul>
|
|
|
85 |
</td>
|
|
|
86 |
<td class='borderd'> </td>
|
|
|
87 |
</tr>
|
|
|
88 |
<tr>
|
|
|
89 |
<td class='cornerbg'></td>
|
|
|
90 |
<td class='borderb'> </td>
|
|
|
91 |
<td class='cornerbd'></td>
|
|
|
92 |
</tr>
|
|
|
93 |
</table>
|
|
|
94 |
</div>
|
|
|
95 |
</body>
|
|
|
96 |
</html>
|