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
key | The settings key |
object | the object to bind to |
property | the property of object to bind to |
flags | flags for the binding |
getMapping | variant to value mapping |
setMapping | value to variant mapping |