Settings.bindWithMapping

void bindWithMapping(string key, void * object, string property, gio.types.SettingsBindFlags flags, gio.types.SettingsBindGetMapping getMapping = null, gio.types.SettingsBindSetMapping setMapping = null)

Like [panel.settings.Settings.bind] but allows transforming to and from settings storage using get_mapping and set_mapping transformation functions.

Call [panel.settings.Settings.unbind] to unbind the mapping.

Parameters

keyThe settings key
objectthe object to bind to
propertythe property of object to bind to
flagsflags for the binding
getMappingvariant to value mapping
setMappingvalue to variant mapping