You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Event Handling > paint

8.33 paint

on.paint(gc, x, y, width, height)

This routine is called when the script application window needs to be painted. The gc graphics context is used in the script code to draw on the window. Additionally it provides the rectangle to be painted. Usually the provided rectangle will match the one provided to invalidate() (subsection 14.7.2) however the system might merge multiple consecutive calls to invalidate in one single paint rectangle. This merge optimization varies based on platform and screen resolution.

Introduced in platform.apiLevel = '1.0'

Extended in platform.apiLevel = ‘2.4’