Changes

Jump to navigation Jump to search

on.paint

270 bytes added, 14:31, 17 June 2011
no edit summary
Line 4: Line 4:  
This function can be fired by the [[platform.window:invalidate]] function.
 
This function can be fired by the [[platform.window:invalidate]] function.
    +
== Example  ==
 +
 +
Below is an example of a program that uses on.paint(gc) to draw a line to the screen:
 +
<source lang="lua">
 +
function on.paint(gc) --Define a function for the event with the default argument
 +
gc:drawLine(5,5,200,1) --Draw a line on the screen
 +
end
 +
</source>
 
[[Category:Events]]
 
[[Category:Events]]
30

edits

Navigation menu