Exemple #1
0
// PopGroupToSource is a wrapper around cairo_pop_group_to_source().
func (v *Context) PopGroupToSource() {
	C.cairo_pop_group_to_source(v.native())
}
Exemple #2
0
func (self *Surface) PopGroupToSource() {
	C.cairo_pop_group_to_source(self.context)
}
Exemple #3
0
//PopGroupToSource terminates the redirection begun by a call to PushGroup
//or PushGroupWithContent and installs the resultant pattern as the source
//pattern in c.
//
//The drawing state of c is reset to what it was before the call to
//PushGroup/PushGroupWithContent.
//
//It is a convenience method equivalent to
//	func PopGroupToSource(c *Context) error {
//		p, err := c.PopGroup()
//		if err != nil {
//			return err
//		}
//		c.SetSource(p)
//		return p.Close()
//	}
//
//See the documentation for PushGroup for more information.
//
//Originally cairo_pop_group_to_source.
func (c *Context) PopGroupToSource() error {
	C.cairo_pop_group_to_source(c.c)
	return c.Err()
}