Terminates the redirection begun by a call to cairo.context.Context.pushGroup or cairo.context.Context.pushGroupWithContent and returns a new pattern containing the results of all drawing operations performed to the group.
The cairo.context.Context.popGroup function calls cairo.context.Context.restore, (balancing a call to cairo.context.Context.save by the push_group function), so that any changes to the graphics state will not be visible outside the group.
a newly created (surface) pattern containing the results of all drawing operations performed to the group. The caller owns the returned object and should call cairo.pattern.Pattern.destroy when finished with it.
Terminates the redirection begun by a call to cairo.context.Context.pushGroup or cairo.context.Context.pushGroupWithContent and returns a new pattern containing the results of all drawing operations performed to the group.
The cairo.context.Context.popGroup function calls cairo.context.Context.restore, (balancing a call to cairo.context.Context.save by the push_group function), so that any changes to the graphics state will not be visible outside the group.