//PopGroup terminates the redirection begun by a call to PushGroup //or PushGroupWithContent and returns a new Pattern. // //The drawing state of c is reset to what it was before the call to //PushGroup/PushGroupWithContent. // //See the documentation for PushGroup for more information. // //Originally cairo_pop_group. func (c *Context) PopGroup() (Pattern, error) { p := C.cairo_pop_group(c.c) if err := c.Err(); err != nil { return nil, err } return cPattern(p) }
func (self *Surface) PopGroup() (pattern *Pattern) { return &Pattern{C.cairo_pop_group(self.context)} }
func (self *Surface) PopGroup() (pattern *Pattern) { pattern = new(Pattern) pattern.pattern = C.cairo_pop_group(self.context) return }