Changes

Jump to navigation Jump to search

platform.window:invalidate

1,141 bytes added, 01:14, 25 May 2011
Created page with "__NOTOC__ platform.window:'''invalidate''' is a function that is part of platform.window. This routine invalidates a region of the window and for..."
__NOTOC__

platform.window:'''invalidate''' is a function that is part of [[:Category:platform.window|platform.window]].


This routine invalidates a region of the window and forces it to repaint.<br />
x and y default to (0, 0) and width and height default to the pixel width and height of the window.<br />

{{Since|3.0}}

== Syntax ==
platform.window:'''invalidate'''([x, y, width, height])

{| class="wikitable"
|-
! Parameter !! Type !! Description
|-
| <u>x</u> || number || Description of arg1
|-
| <u>y</u> || number || Description of arg2
|-
| <u>width</u> || number || Description of arg3
|-
| <u>height</u> || number || Description of arg4
|}

== Examples ==
<syntaxhighlight>platform.window:invalidate()</syntaxhighlight>
<syntaxhighlight>platform.window:invalidate(0, 0, 50, 10)</syntaxhighlight>

== 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.

== See also ==
*[[:Category:platform.window|platform.window]]
*[[on.paint]]

<br /><br />

[[Category:platform.window]]

Navigation menu