// 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/settings_schema.go:1:1 package glib // #include // #include // #include // #include "glib.go.h" import _ "unsafe" import "unsafe" // SettingsSchema is a representation of GSettingsSchema. type SettingsSchema struct { schema * /*line :12:10*/_Ctype_GSettingsSchema /*line :12:27*/ } func wrapSettingsSchema(obj * /*line :15:30*/_Ctype_GSettingsSchema /*line :15:47*/) *SettingsSchema { if obj == nil { return nil } return &SettingsSchema{obj} } func (v *SettingsSchema) Native() uintptr { return uintptr(unsafe.Pointer(v.schema)) } func (v *SettingsSchema) native() * /*line :26:36*/_Ctype_GSettingsSchema /*line :26:53*/ { if v == nil || v.schema == nil { return nil } return v.schema } // Ref() is a wrapper around g_settings_schema_ref(). func (v *SettingsSchema) Ref() *SettingsSchema { return wrapSettingsSchema(func() *_Ctype_struct__GSettingsSchema{ _cgo0 := /*line :35:52*/v.native(); _cgoCheckPointer(_cgo0, nil); return /*line :35:63*/_Cfunc_g_settings_schema_ref(_cgo0); }()) } // Unref() is a wrapper around g_settings_schema_unref(). func (v *SettingsSchema) Unref() { func() { _cgo0 := /*line :40:28*/v.native(); _cgoCheckPointer(_cgo0, nil); /*line :40:39*/_Cfunc_g_settings_schema_unref(_cgo0); }() } // GetID() is a wrapper around g_settings_schema_get_id(). func (v *SettingsSchema) GetID() string { return ( /*line :45:9*/_Cfunc_GoString /*line :45:18*/)((* /*line :45:22*/_Ctype_char /*line :45:28*/)(func() *_Ctype_gchar{ _cgo0 := /*line :45:57*/v.native(); _cgoCheckPointer(_cgo0, nil); return /*line :45:68*/_Cfunc_g_settings_schema_get_id(_cgo0); }())) } // GetPath() is a wrapper around g_settings_schema_get_path(). func (v *SettingsSchema) GetPath() string { return ( /*line :50:9*/_Cfunc_GoString /*line :50:18*/)((* /*line :50:22*/_Ctype_char /*line :50:28*/)(func() *_Ctype_gchar{ _cgo0 := /*line :50:59*/v.native(); _cgoCheckPointer(_cgo0, nil); return /*line :50:70*/_Cfunc_g_settings_schema_get_path(_cgo0); }())) } // HasKey() is a wrapper around g_settings_schema_has_key(). func (v *SettingsSchema) HasKey(v1 string) bool { cstr := (* /*line :55:12*/_Ctype_gchar /*line :55:19*/)(( /*line :55:21*/_Cfunc_CString /*line :55:29*/)(v1)) defer func() func() { _cgo0 := /*line :56:15*/unsafe.Pointer(cstr); return func() { _cgoCheckPointer(_cgo0, nil); /*line :56:36*/_Cfunc_free(_cgo0); }}()() return gobool(func() _Ctype_gboolean{ _cgo0 := /*line :58:44*/v.native(); var _cgo1 *_Ctype_gchar = /*line :58:56*/cstr; _cgoCheckPointer(_cgo0, nil); return /*line :58:61*/_Cfunc_g_settings_schema_has_key(_cgo0, _cgo1); }()) } func toGoStringArray(c ** /*line :61:26*/_Ctype_gchar /*line :61:33*/) []string { var strs []string originalc := c defer func() func() { _cgo0 := /*line :64:21*/originalc; return func() { _cgoCheckPointer(_cgo0, nil); /*line :64:31*/_Cfunc_g_strfreev(_cgo0); }}()() for *c != nil { strs = append(strs, ( /*line :67:23*/_Cfunc_GoString /*line :67:32*/)((* /*line :67:36*/_Ctype_char /*line :67:42*/)(*c))) c = func() **_Ctype_gchar{ _cgo0 := /*line :68:23*/c; _cgoCheckPointer(_cgo0, nil); return /*line :68:25*/_Cfunc_next_gcharptr(_cgo0); }() } return strs } // // ListChildren() is a wrapper around g_settings_schema_list_children(). // func (v *SettingsSchema) ListChildren() []string { // return toGoStringArray(C.g_settings_schema_list_children(v.native())) // } // // ListKeys() is a wrapper around g_settings_schema_list_keys(). // func (v *SettingsSchema) ListKeys() []string { // return toGoStringArray(C.g_settings_schema_list_keys(v.native())) // } // const GVariantType * g_settings_schema_key_get_value_type () // GVariant * g_settings_schema_key_get_default_value () // GVariant * g_settings_schema_key_get_range () // gboolean g_settings_schema_key_range_check () // const gchar * g_settings_schema_key_get_name () // const gchar * g_settings_schema_key_get_summary () // const gchar * g_settings_schema_key_get_description () // GSettingsSchemaKey * g_settings_schema_get_key () // GSettingsSchemaKey * g_settings_schema_key_ref () // void g_settings_schema_key_unref ()