fr:code:windows:colordialog
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:windows:colordialog [2012/04/24 14:16] – wismerheal | fr:code:windows:colordialog [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== ColorDialog [En cours de Traduction Wismerheal][WSL] ====== | ====== ColorDialog [En cours de Traduction Wismerheal][WSL] ====== | ||
- | This object represents a window allowing the user to choose a color. | + | Cet objet représente une fenêtre permettant à l' |
- | ===== Functions | + | ===== Fonctions |
==== ColorDialog ==== | ==== ColorDialog ==== | ||
- | Constructor function. | + | Fonction de construction. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
var myObject = new ColorDialog(); | var myObject = new ColorDialog(); | ||
Ligne 16: | Ligne 16: | ||
=== Arguments === | === Arguments === | ||
- | - parameters | + | - paramètres |
- | * title - (string) | + | * title - (string) |
- | * position - ([[en: | + | * position - ([[en: |
- | * opacity - (float) | + | * opacity - (float) |
- | * enabled - (boolean) | + | * enabled - (boolean) |
- | * visible - (boolean) | + | * visible - (boolean) |
- | * showAlphaChannel - (boolean) | + | * showAlphaChannel - (boolean) |
- | * color - ([[en: | + | * color - ([[en: |
- | * onClosed - ([[# | + | * onColorSelected - ([[# |
- | * onColorSelected - ([[# | + | * onColorChanged - ([[# |
- | * onColorChanged - ([[# | + | |
=== Exceptions === | === Exceptions === | ||
- | * (ParameterTypeError) | + | * (ParameterTypeError) type de paramètre incorrect |
- | * (ParameterCountError) incorrect | + | * (ParameterCountError) |
=== Example === | === Example === | ||
Ligne 43: | Ligne 42: | ||
</ | </ | ||
- | ===== Methods | + | ===== Méthodes |
==== setTitle ==== | ==== setTitle ==== | ||
- | Sets the window' | + | Définit le titre de la fenêtre. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setTitle(title); | myObject.setTitle(title); | ||
Ligne 54: | Ligne 53: | ||
=== Arguments === | === Arguments === | ||
- | - title - (string) | + | - title - (string) |
- | === Returns | + | === Renvoi |
- | * (ColorDialog) | + | * (ColorDialog) |
==== setPosition ==== | ==== setPosition ==== | ||
- | Sets the window' | + | Définit la position |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setPosition(point); | myObject.setPosition(point); | ||
Ligne 68: | Ligne 67: | ||
=== Arguments === | === Arguments === | ||
- | - point - ([[en: | + | - point - ([[en: |
- | === Returns | + | === Renvoi |
- | * (ColorDialog) | + | * (ColorDialog) |
==== setOpacity ==== | ==== setOpacity ==== | ||
- | Sets the window's opacity. | + | Définit l'opacité de la fenêtre. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setOpacity(opacity); | myObject.setOpacity(opacity); | ||
Ligne 82: | Ligne 81: | ||
=== Arguments === | === Arguments === | ||
- | - opacity - (float) | + | - opacity - (float) |
=== Returns === | === Returns === | ||
- | * (ColorDialog) | + | * (ColorDialog) |
==== setEnabled ==== | ==== setEnabled ==== | ||
- | Sets the window's enabled status. | + | Définit le statut d'activité de la fenêtre. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setEnabled(enabled); | myObject.setEnabled(enabled); | ||
Ligne 96: | Ligne 95: | ||
=== Arguments === | === Arguments === | ||
- | - enabled - (boolean) | + | - enabled - (boolean) |
- | + | nvoiturns | |
- | === Returns | + | * (ColorDialog) |
- | * (ColorDialog) | + | |
==== setVisible ==== | ==== setVisible ==== | ||
- | Sets the window' | + | Définit le statut |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setVisible(visible); | myObject.setVisible(visible); | ||
Ligne 110: | Ligne 108: | ||
=== Arguments === | === Arguments === | ||
- | - visible - (boolean) | + | - visible - (boolean) |
- | === Returns | + | === Renvoi |
- | * (ColorDialog) | + | * (ColorDialog) |
==== close ==== | ==== close ==== | ||
- | Closes the window. | + | Ferme la fenêtre. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.close(); | myObject.close(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (ColorDialog) | + | * (ColorDialog) |
==== title ==== | ==== title ==== | ||
- | Returns the window' | + | Renvoi le titre de la fenêtre. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.title(); | myObject.title(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (string) | + | * (string) |
==== position ==== | ==== position ==== | ||
- | Returns the window' | + | Renvoi la position |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.position(); | myObject.position(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * ([[en: | + | * ([[en: |
==== opacity ==== | ==== opacity ==== | ||
- | Returns the window's opacity. | + | Renvoi l'opacité de la fenêtre. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.opacity(); | myObject.opacity(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (float) | + | * (float) |
==== enabled ==== | ==== enabled ==== | ||
- | Returns the window's enabled status. | + | Renvoi le statut d'activité de la fenêtre. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.enabled(); | myObject.enabled(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (boolean) | + | * (boolean) |
==== visible ==== | ==== visible ==== | ||
- | Returns the window' | + | Renvoi le statut |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.visible(); | myObject.visible(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (boolean) | + | * (boolean) |
==== showAlphaChannel ==== | ==== showAlphaChannel ==== | ||
- | Sets if the alpha channel should be visible. | + | Définit si le canal alpha doit être visible. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.showAlphaChannel(showAlphaChannel); | myObject.showAlphaChannel(showAlphaChannel); | ||
Ligne 190: | Ligne 188: | ||
=== Arguments === | === Arguments === | ||
- | - showAlphaChannel - (boolean) | + | - showAlphaChannel - (boolean) |
- | === Returns | + | === Renvoi |
- | * (ColorDialog) | + | * (ColorDialog) |
==== setColor ==== | ==== setColor ==== | ||
- | Sets the current color. | + | Définit la couleur actuelle. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setColor(color); | myObject.setColor(color); | ||
Ligne 204: | Ligne 202: | ||
=== Arguments === | === Arguments === | ||
- | - color - ([[en: | + | - color - ([[en: |
- | === Returns | + | === Renvoi |
- | * (ColorDialog) | + | * (ColorDialog) |
==== show ==== | ==== show ==== | ||
- | Show the window. (non-blocking) | + | Montre la fenêtre. (non bloquant) |
- | Use the [[# | + | Utilise l' |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.show(); | myObject.show(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (ColorDialog) | + | * (ColorDialog) |
==== showModal ==== | ==== showModal ==== | ||
- | Show the window. (blocking) | + | Montre la fenêtre. (bloquant) |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.showModal(); | myObject.showModal(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (integer) | + | * (integer) |
==== color ==== | ==== color ==== | ||
- | Returns the current color. | + | Renvoi la couleur actuelle. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.color(); | myObject.color(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * ([[en: | + | * ([[en: |
- | ===== Events | + | ===== Évènements |
==== onClosed ==== | ==== onClosed ==== | ||
- | Called when the window is closed. | + | Appelé quand la fenêtre est fermée. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.onClosed = function(result) {}; | myObject.onClosed = function(result) {}; | ||
Ligne 254: | Ligne 252: | ||
=== Arguments === | === Arguments === | ||
- | - result - (integer) | + | - result - (integer) |
=== Example === | === Example === | ||
Ligne 268: | Ligne 266: | ||
==== onColorSelected ==== | ==== onColorSelected ==== | ||
- | Called when a color has been selected. | + | Appelé quand une couleur |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.onColorSelected = function(color) {}; | myObject.onColorSelected = function(color) {}; | ||
Ligne 276: | Ligne 274: | ||
=== Arguments === | === Arguments === | ||
- | - color - ([[en: | + | - color - ([[en: |
=== Example === | === Example === | ||
Ligne 287: | Ligne 285: | ||
==== onColorChanged ==== | ==== onColorChanged ==== | ||
- | Called when the current color has been changed. | + | Appelé quand la couleur actuelle a été changé. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.onColorChanged = function(color) {}; | myObject.onColorChanged = function(color) {}; | ||
Ligne 295: | Ligne 293: | ||
=== Arguments === | === Arguments === | ||
- | - color - ([[en: | + | - color - ([[en: |
=== Example === | === Example === | ||
Ligne 308: | Ligne 306: | ||
==== title ==== | ==== title ==== | ||
- | The window' | + | Le titre de la fenêtre. (string) |
==== position ==== | ==== position ==== | ||
- | The window' | + | La position |
==== opacity ==== | ==== opacity ==== | ||
- | The window's opacity. (float) | + | L'opacité de la fenêtre. (float) |
==== enabled ==== | ==== enabled ==== | ||
- | The window's enabled status. (boolean) | + | Le statut d'activité de la fenêtre. (boolean) |
==== visible ==== | ==== visible ==== | ||
- | The window' | + | Le statut de visibilité de la fenêtre. (boolean) |
fr/code/windows/colordialog.1335276974.txt.gz · Dernière modification : 2021/02/13 11:23 (modification externe)