// Code generated by cmd/cgo; DO NOT EDIT. //line /home/josie/.cache/paru/clone/wiiudownloader/src/pkg/mod/github.com/gotk3/gotk3@v0.6.5-0.20240618185848-ff349ae13f56/gdk/pixbuf_since_2_12.go:1:1 // Same copyright and license as the rest of the files in this project // +build !gdk_pixbuf_2_2,!gdk_pixbuf_2_4,!gdk_pixbuf_2_6,!gdk_pixbuf_2_8 package gdk // #cgo pkg-config: gdk-3.0 glib-2.0 gobject-2.0 // #include // #include "gdk.go.h" // #include "pixbuf.go.h" import _ "unsafe" import ( "runtime" "unsafe" "github.com/gotk3/gotk3/glib" ) // Utilities // ApplyEmbeddedOrientation is a wrapper around gdk_pixbuf_apply_embedded_orientation(). func (v *Pixbuf) ApplyEmbeddedOrientation() (*Pixbuf, error) { c := func() *_Ctype_struct__GdkPixbuf{ _cgo0 := /*line :23:47*/v.native(); _cgoCheckPointer(_cgo0, nil); return /*line :23:58*/_Cfunc_gdk_pixbuf_apply_embedded_orientation(_cgo0); }() if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} p := &Pixbuf{obj} //obj.Ref() runtime.SetFinalizer(p, func(_ interface{}) { glib.FinalizerStrategy(obj.Unref) }) return p, nil }