bind_with_mapping


Description:

public void bind_with_mapping (string key, void* object, string property, SettingsBindFlags flags, SettingsBindGetMapping? get_mapping, owned SettingsBindSetMapping? set_mapping)

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

Call unbind to unbind the mapping.

Parameters:

this

An Settings

key

The settings key

object

the object to bind to

property

the property of object to bind to

flags

flags for the binding

get_mapping

variant to value mapping

set_mapping

value to variant mapping

destroy

destroy function to cleanup user_data.

user_data

user data for get_mapping and set_mapping