fr:scriptapi:class:display:setwindowposition
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| fr:scriptapi:class:display:setwindowposition [2023/04/11 11:33] – oldsnake | fr:scriptapi:class:display:setwindowposition [2023/04/15 10:57] (current) – [Arguments] oldsnake | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== SetWindowPosition ====== | ====== SetWindowPosition ====== | ||
| - | Paramètre la position de la fenêtre. | + | Paramètre la position de la fenêtre |
| ==== Syntaxe ==== | ==== Syntaxe ==== | ||
| - | <code cpp>void SetWindowPosition(const IntVector2& | + | <code cpp> |
| + | void SetWindowPosition(const IntVector2& | ||
| + | void SetWindowPosition(int fX, int fY) | ||
| + | </ | ||
| ==== Arguments ==== | ==== Arguments ==== | ||
| - | * **fPosition** | + | | IntVector2 |
| + | |||
| + | | int **fX** | Nouvelle position X (horizontale) de la fenêtre | | ||
| + | | int **fY** | Nouvelle position Y (verticale) de la fenêtre | | ||
| ==== Exemple ==== | ==== Exemple ==== | ||
| - | <code cpp> | + | <code cpp[enable_line_numbers=" |
| Display@ _hDisplay = GetDisplay(); | Display@ _hDisplay = GetDisplay(); | ||
| | | ||
| Line 20: | Line 26: | ||
| </ | </ | ||
| + | <code cpp[enable_line_numbers=" | ||
| + | Display@ _hDisplay = GetDisplay(); | ||
| + | | ||
| + | _hDisplay.SetWindowPosition(IntVector2(400, | ||
| + | </ | ||
| + | <code cpp[enable_line_numbers=" | ||
| + | Display@ _hDisplay = GetDisplay(); | ||
| + | | ||
| + | _hDisplay.SetWindowPosition(400, | ||
| + | </ | ||
fr/scriptapi/class/display/setwindowposition.1681205582.txt.gz · Last modified: 2023/04/11 11:33 by oldsnake