Changes

Jump to navigation Jump to search

platform.window:invalidate

233 bytes added, 22:30, 7 August 2011
no edit summary
Line 5: Line 5:     
This routine invalidates a region of the window by firing the [[on.paint]] event, thus forcing it get repainted.<br />
 
This routine invalidates a region of the window by firing the [[on.paint]] event, thus forcing it get repainted.<br />
x and y default to (0, 0) and width and height default to the pixel width and height of the window.<br />
+
x and y default to (0, 0) and width and height default to the pixel width and height of the window.<br />These arguments are optional.
 +
 
 
<br />
 
<br />
   Line 17: Line 18:  
! Parameter !! Type !! Description
 
! Parameter !! Type !! Description
 
|-
 
|-
| <u>x</u> || number || x-coordinate of the upper-left origin.
+
| <u><center>x</center></u> || number || x-coordinate of the upper-left origin.
 
|-
 
|-
| <u>y</u> || number || y-coordinate of the upper-left origin.
+
| <u><center>y</center></u> || number || y-coordinate of the upper-left origin.
 
|-
 
|-
| <u>width</u> || number || width of the region to be refreshed.
+
| <u><center>width</center></u> || number || width of the region to be refreshed.
 
|-
 
|-
| <u>height</u> || number || height of the region to be refreshed.
+
| <u><center>height</center></u> || number || height of the region to be refreshed.
 
|}
 
|}
   Line 32: Line 33:  
== Good to know ==
 
== Good to know ==
 
The entire window can be forced to repaint with by calling the function with no arguments : ''platform.window:'''''invalidate'''() , allowing all parameters to take their default values.
 
The entire window can be forced to repaint with by calling the function with no arguments : ''platform.window:'''''invalidate'''() , allowing all parameters to take their default values.
 +
 +
Repainting only a part of the widget (thanks to providing the necessary arguments) only currently works on-calc, not on the software.
    
== See also  ==
 
== See also  ==

Navigation menu