Name
ccontext:PopGroupToSource -- pop group to source
Synopsis
ccontext:PopGroupToSource()
Function
Terminates the redirection begun by a call to ccontext:PushGroup() or ccontext:PushGroupWithContent() and installs the resulting pattern as the source pattern in the given Cairo context.

The behavior of this function is equivalent to the sequence of operations:

 
group = cr:PopGroup()
cr:SetSource(group)
group:Free()

but is more convenient as their is no need for a variable to store the short-lived handle to the pattern.

The ccontext:PopGroup() function calls ccontext:Restore(), (balancing a call to ccontext:Save() by the push group function), so that any changes to the graphics state will not be visible outside the group.

Inputs
none


Show TOC