コード例 #1
0
ファイル: cairo.go プロジェクト: raichu/gotk3
// PopGroupToSource is a wrapper around cairo_pop_group_to_source().
func (v *Context) PopGroupToSource() {
	C.cairo_pop_group_to_source(v.native())
}
コード例 #2
0
ファイル: surface.go プロジェクト: ungerik/go-cairo
func (self *Surface) PopGroupToSource() {
	C.cairo_pop_group_to_source(self.context)
}
コード例 #3
0
ファイル: cairo.go プロジェクト: jimmyfrasche/cairo
//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()
}