User Tools

Site Tools


fr:scriptapi:class:display:setwindowposition

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
fr:scriptapi:class:display:setwindowposition [2023/04/11 11:03] – ↷ Page moved and renamed from fr:scriptapi:class:display to fr:scriptapi:class:display:setwindowposition oldsnakefr: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 de l'application.
  
-=== Syntaxe ===+==== Syntaxe ====
  
-<code cpp>void SetWindowPosition(const IntVector2& fPosition)</code>+<code cpp> 
 +void SetWindowPosition(const IntVector2& fPosition) 
 +void SetWindowPosition(int fX, int fY) 
 +</code>
  
-=== Arguments ===+==== Arguments ====
  
-    * fPosition (IntVector2): Nouvelle position de la fenêtre.+| IntVector2 **fPosition** | Nouvelles coordonnées de position de la fenêtre (par rapport aux coordonnées de l'écran actuel) |
  
-=== Exemple ===+| int **fX** | Nouvelle position X (horizontale) de la fenêtre | 
 +| int **fY** | Nouvelle position Y (verticale) de la fenêtre |
  
-<code cpp>+==== Exemple ==== 
 + 
 +<code cpp[enable_line_numbers="true",highlight_lines_extra="4"]> 
 +    Display@ _hDisplay = GetDisplay(); 
 +    
     IntVector2 _Position = IntVector2(400, 200);     IntVector2 _Position = IntVector2(400, 200);
     _hDisplay.SetWindowPosition(_Position);     _hDisplay.SetWindowPosition(_Position);
 </code> </code>
  
-====== Test1 ====== +<code cpp[enable_line_numbers="true",highlight_lines_extra="3"]> 
- +    Display@ _hDisplay GetDisplay(); 
-... +     
- +    _hDisplay.SetWindowPosition(IntVector2(400, 200)); 
-====== Test2 ====== +</code>
- +
-... +
- +
-====== Test3 ====== +
- +
-... +
- +
-====== Test4 ====== +
- +
-... +
- +
- +
- +
  
 +<code cpp[enable_line_numbers="true",highlight_lines_extra="3"]>
 +    Display@ _hDisplay = GetDisplay();
 +    
 +    _hDisplay.SetWindowPosition(400, 200);
 +</code>
fr/scriptapi/class/display/setwindowposition.1681203790.txt.gz · Last modified: 2023/04/11 11:03 by oldsnake

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki