Name
ccontext:GetTarget -- get target surface
Synopsis
surface = ccontext:GetTarget()
Function
Gets the target surface for the Cairo context as passed to cairo.Context().

This function will always return a valid handle, but the result can be a "nil" surface if the context is already in an error state. A Nil surface is indicated by csurface:Status() being different to #CAIRO_STATUS_SUCCESS.

This function returns the target surface. This object is owned by Cairo. To keep a reference to it, you must call csurface:Reference().

Inputs
none

Results
surface
the target surface (owned by Cairo)

Show TOC