/* Creates a new #GdkPixbuf with a copy of the information in the specified @pixbuf. */ func (self *TraitPixbuf) Copy() (return__ *Pixbuf) { var __cgo__return__ *C.GdkPixbuf __cgo__return__ = C.gdk_pixbuf_copy(self.CPointer) if __cgo__return__ != nil { return__ = NewPixbufFromCPointer(unsafe.Pointer(reflect.ValueOf(__cgo__return__).Pointer())) } return }
// PixbufCopy is a wrapper around gdk_pixbuf_copy(). func PixbufCopy(v *Pixbuf) (*Pixbuf, error) { c := C.gdk_pixbuf_copy(v.native()) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} p := &Pixbuf{obj} runtime.SetFinalizer(obj, (*glib.Object).Unref) return p, nil }