Beispiel #1
0
//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)
}
Beispiel #2
0
func (self *Surface) PopGroup() (pattern *Pattern) {
	return &Pattern{C.cairo_pop_group(self.context)}
}
Beispiel #3
0
func (self *Surface) PopGroup() (pattern *Pattern) {
	pattern = new(Pattern)
	pattern.pattern = C.cairo_pop_group(self.context)
	return
}