platform.window:invalidate

From Inspired-Lua Wiki
Revision as of 00:14, 25 May 2011 by Adriweb (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


platform.window:invalidate is a function that is part of platform.window.


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

This has been introduced in TI-Nspire OS 3.0 (Changes).


Syntax

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

Parameter Type Description
x number Description of arg1
y number Description of arg2
width number Description of arg3
height number Description of arg4

Examples

platform.window:invalidate()
platform.window:invalidate(0, 0, 50, 10)

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