Foundry.Settings¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8), Gio.ActionGroup (14)
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GObject.Object (7), Json.Serializable (5), Gio.ActionGroup (14)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
The path to use for for app settings |
||
r/w/co |
Schema ID |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fields¶
- Inherited:
Class Details¶
- class Foundry.Settings(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Abstraction for user, project, and application settings.
This class provides support for settings which may be overridden at multiple levels including per-user, per-project, and application-wide defaults.
- classmethod new(context, schema_id)¶
- Parameters:
context (
Foundry.Context) –schema_id (
str) –
- Return type:
- classmethod new_with_path(context, schema_id, path)¶
- Parameters:
context (
Foundry.Context) –schema_id (
str) –path (
str) –
- Return type:
- bind(key, object, property, flags)¶
- Parameters:
key (
str) –property (
str) –flags (
Gio.SettingsBindFlags) –
- bind_with_mapping(key, object, property, flags, get_mapping, set_mapping, *user_data)¶
- Parameters:
key (
str) – The settings keyproperty (
str) – the property of object to bind toflags (
Gio.SettingsBindFlags) – flags for the bindingget_mapping (
Gio.SettingsBindGetMappingorNone) – variant to value mappingset_mapping (
Gio.SettingsBindSetMappingorNone) – value to variant mappinguser_data (
objectorNone) – user data for get_mapping and set_mapping
Like
Foundry.Settings.bind() but allows transforming to and from settings storage using get_mapping and set_mapping transformation functions.Call
Foundry.Settings.unbind() to unbind the mapping.
- dup_layer(layer)¶
- Parameters:
layer (
Foundry.SettingsLayer) – the desired layer- Returns:
a
Gio.Settingsinstance- Return type:
Gets the underlying
Gio.Settingsused for the respective layer.
- set_value(key, value)¶
- Parameters:
key (
str) –value (
GLib.Variant) –
Signal Details¶
- Foundry.Settings.signals.changed(settings, object)¶
- Signal Name:
changed- Flags:
- Parameters:
settings (
Foundry.Settings) – The object which received the signalobject (
str) –
Property Details¶
- Foundry.Settings.props.path¶
- Name:
path- Type:
- Default Value:
- Flags:
The path to use for for app settings