// 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/glib/gvariantdict.go:1:1 // Same copyright and license as the rest of the files in this project //GVariant : GVariant — strongly typed value datatype // https://developer.gnome.org/glib/2.26/glib-GVariant.html package glib // #include // #include // #include "glib.go.h" // #include "gvariant.go.h" import _ "unsafe" import "unsafe" /* * GVariantDict */ // VariantDict is a representation of GLib's VariantDict. type VariantDict struct { GVariantDict * /*line :21:16*/_Ctype_GVariantDict /*line :21:30*/ } func (v *VariantDict) toGVariantDict() * /*line :24:41*/_Ctype_GVariantDict /*line :24:55*/ { if v == nil { return nil } return v.native() } func (v *VariantDict) toVariantDict() *VariantDict { return v } // newVariantDict creates a new VariantDict from a GVariantDict pointer. func newVariantDict(p * /*line :36:24*/_Ctype_GVariantDict /*line :36:38*/) *VariantDict { return &VariantDict{GVariantDict: p} } // native returns a pointer to the underlying GVariantDict. func (v *VariantDict) native() * /*line :41:33*/_Ctype_GVariantDict /*line :41:47*/ { if v == nil || v.GVariantDict == nil { return nil } p := unsafe.Pointer(v.GVariantDict) return func() *_Ctype_struct__GVariantDict{ _cgo0 := /*line :46:26*/p; _cgoCheckPointer(_cgo0, nil); return /*line :46:28*/_Cfunc_toGVariantDict(_cgo0); }() } // Native returns a pointer to the underlying GVariantDict. func (v *VariantDict) Native() uintptr { return uintptr(unsafe.Pointer(v.native())) }