fr:code:core:size
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| fr:code:core:size [2012/03/21 14:59] – wismerheal | fr:code:core:size [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Size [En cours de Traduction Wismerheal][WSL] ====== | ====== Size [En cours de Traduction Wismerheal][WSL] ====== | ||
| - | This object represents a size in a 2D space. | + | Cet Objet représente la taille d'un espace en 2 dimensions. |
| - | ===== Functions | + | |
| + | ===== Fonctions | ||
| ==== Size ==== | ==== Size ==== | ||
| - | Constructor function. | + | Fonction de construction. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| var myObject = new Size(); | var myObject = new Size(); | ||
| Ligne 17: | Ligne 18: | ||
| === Arguments === | === Arguments === | ||
| - | - otherSize - (Size) | + | - otherSize - (Size) |
| - | - width - (integer) | + | - width - (integer) |
| - | - height - (integer) | + | - height - (integer) |
| === Exceptions === | === Exceptions === | ||
| - | * (ParameterTypeError) incorrect | + | * (ParameterTypeError) |
| - | * (ParameterCountError) incorrect | + | * (ParameterCountError) |
| === Example === | === Example === | ||
| - | Create a Size representing a zero size. | + | Créer une Taille représentant une taille nulle (à zéro). |
| <code javascript> | <code javascript> | ||
| var myObject = new Size(); | var myObject = new Size(); | ||
| </ | </ | ||
| - | Create a Size representing a copy of **otherSize**. | + | Créer une taille représentant une copie de **otherSize** |
| <code javascript> | <code javascript> | ||
| var myObject = new Size(otherSize); | var myObject = new Size(otherSize); | ||
| </ | </ | ||
| - | Create a Size representing the (50; | + | Créer une Taille représentant une taille de (50;75) . |
| <code javascript> | <code javascript> | ||
| var myObject = new Size(50, 75); | var myObject = new Size(50, 75); | ||
| </ | </ | ||
| - | ===== Methods | + | ===== Méthodes |
| ==== clone ==== | ==== clone ==== | ||
| - | Returns a copy of this Size. | + | Renvoie une copie de la Taille. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.clone(); | myObject.clone(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * (Size) | + | * (Size) |
| === Example === | === Example === | ||
| Ligne 55: | Ligne 56: | ||
| </ | </ | ||
| ==== equals ==== | ==== equals ==== | ||
| - | Returns true if this Size and another are referencing the same size. | + | Renvoie vrai si la Taille et autre font référence à la même taille. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.equals(other); | myObject.equals(other); | ||
| Ligne 63: | Ligne 64: | ||
| === Arguments === | === Arguments === | ||
| - | - other - (Size) | + | - other - (Size) |
| - | === Returns | + | === Renvoie |
| - | * (bool) | + | * (bool) |
| === Example === | === Example === | ||
| Ligne 74: | Ligne 75: | ||
| </ | </ | ||
| ==== toString ==== | ==== toString ==== | ||
| - | Returns a string representing this Size. | + | Renvoie une chaîne représentant la Taille. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.toString(); | myObject.toString(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * (string) | + | * (string) |
| === Example === | === Example === | ||
| Ligne 90: | Ligne 91: | ||
| === Notes === | === Notes === | ||
| - | This method is automatically called when trying to convert a Size to a string. | + | Cette méthode est appelée automatiquement lors de la tentative de conversion d'une Taille en une chaîne. |
| ==== setWidth ==== | ==== setWidth ==== | ||
| - | Sets the width of this Size. | + | Définit la largeur de la Taille. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setWidth(width); | myObject.setWidth(width); | ||
| Ligne 100: | Ligne 102: | ||
| === Arguments === | === Arguments === | ||
| - | - width - (integer) | + | - width - (integer) |
| - | === Returns | + | === Renvoie |
| - | * (Size) | + | * (Size) |
| ==== setHeight ==== | ==== setHeight ==== | ||
| - | Sets the height of this Size. | + | Définit la hauteur de la Taille. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setHeight(height); | myObject.setHeight(height); | ||
| Ligne 113: | Ligne 115: | ||
| === Arguments === | === Arguments === | ||
| - | - height - (integer) | + | - height - (integer) |
| - | === Returns | + | === Renvoie |
| - | * (Size) | + | * (Size) |
| ==== width ==== | ==== width ==== | ||
| - | Returns the width of this Size. | + | Renvoie la largeur de la Taille. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.width(); | myObject.width(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * (integer) | + | * (integer) |
| ==== height ==== | ==== height ==== | ||
| - | Returns the height of this Size. | + | Renvoie la hauteur de la Taille. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.height(); | myObject.height(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * (integer) | + | * (integer) |
| + | ===== Attributs ===== | ||
| ==== width ==== | ==== width ==== | ||
| - | The width of this Size. (integer) | + | La largeur de la Taille. (integer) |
| === Example === | === Example === | ||
| Ligne 146: | Ligne 149: | ||
| </ | </ | ||
| ==== height ==== | ==== height ==== | ||
| - | The height of this Size. (integer) | + | La hauteur de la Taille. (integer) |
| === Example === | === Example === | ||
fr/code/core/size.1332341996.txt.gz · Dernière modification : (modification externe)
