// GetGroupTarget is a wrapper around cairo_get_group_target(). func (v *Context) GetGroupTarget() *Surface { c := C.cairo_get_group_target(v.native()) s := wrapSurface(c) s.reference() runtime.SetFinalizer(s, (*Surface).destroy) return s }
//GroupTarget returns the current destination surface for c. //If there have been no calls to PushGroup/PushGroupWithContent, //this is equivalent to Target. //Otherwise, //Originally cairo_get_group_target. func (c *Context) GroupTarget() (Surface, error) { s := C.cairo_get_group_target(c.c) s = C.cairo_surface_reference(s) return XtensionRevivifySurface(s) }