Code that paints on a drawing surface should
be bracketed by calls to functions
surface:begin() and
and surface:theEnd().
Function surface:begin()
return the drawing port descriptor
than should be used to call painting functions.
qlua,
both the drawing surfaces descriptors
and the drawing port descriptors
are the descriptors returned by the
high level interface
of package qtwidget.
All the painting functions
defined by package qtwidget
are therefore available.
However, to write portable code, you must restrict
yourself to the Cairo-style functions defined
for the drawing port descriptors.
lcairo are available.