Difference between revisions of "on.paint"

From Inspired-Lua Wiki
Jump to navigation Jump to search
Line 1: Line 1:
The function '''on.paint'''(''[[:Category:gc|gc]]'') is called when the script's window needs to be painted.
+
The function '''on.paint'''(''[[:Category:gc|gc]]'') is called when the script's window needs to be painted.<br />
 
''[[:Category:gc|'gc']]'' is the Graphics Context, passed by default to the function.
 
''[[:Category:gc|'gc']]'' is the Graphics Context, passed by default to the function.
  
 +
This function can be fired by the [[platform.window.invalidate]] function.
  
 
[[Category:Events]]
 
[[Category:Events]]

Revision as of 23:55, 24 May 2011

The function on.paint(gc) is called when the script's window needs to be painted.
'gc' is the Graphics Context, passed by default to the function.

This function can be fired by the platform.window.invalidate function.