Class Settings
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class Settings : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
Settings
- Implements
- Inherited Members
Constructors
Settings(bool, params ConstructArgument[])
protected Settings(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
boolconstructArguments
ConstructArgument[]
Settings(IntPtr, bool)
protected Settings(IntPtr ptr, bool ownedRef)
Parameters
Fields
BackendPropertyDefinition
public static readonly Property<SettingsBackend?, Settings> BackendPropertyDefinition
Field Value
ChangeEventSignal
Signal Descriptor for OnChangeEvent.
public static readonly ReturningSignal<Settings, Settings.ChangeEventSignalArgs, bool> ChangeEventSignal
Field Value
ChangedSignal
Signal Descriptor for OnChanged.
public static readonly Signal<Settings, Settings.ChangedSignalArgs> ChangedSignal
Field Value
DelayApplyPropertyDefinition
public static readonly Property<bool, Settings> DelayApplyPropertyDefinition
Field Value
HasUnappliedPropertyDefinition
public static readonly Property<bool, Settings> HasUnappliedPropertyDefinition
Field Value
PathPropertyDefinition
public static readonly Property<string?, Settings> PathPropertyDefinition
Field Value
SchemaIdPropertyDefinition
public static readonly Property<string?, Settings> SchemaIdPropertyDefinition
Field Value
SchemaPropertyDefinition
public static readonly Property<string?, Settings> SchemaPropertyDefinition
Field Value
SettingsSchemaPropertyDefinition
public static readonly Property<SettingsSchema, Settings> SettingsSchemaPropertyDefinition
Field Value
WritableChangeEventSignal
Signal Descriptor for OnWritableChangeEvent.
public static readonly ReturningSignal<Settings, Settings.WritableChangeEventSignalArgs, bool> WritableChangeEventSignal
Field Value
WritableChangedSignal
Signal Descriptor for OnWritableChanged.
public static readonly Signal<Settings, Settings.WritableChangedSignalArgs> WritableChangedSignal
Field Value
Properties
Backend
public SettingsBackend? Backend { get; }
Property Value
DelayApply
public bool DelayApply { get; }
Property Value
HasUnapplied
public bool HasUnapplied { get; }
Property Value
Path
public string? Path { get; }
Property Value
Schema
public string? Schema { get; }
Property Value
SchemaId
public string? SchemaId { get; }
Property Value
SettingsSchema
public SettingsSchema SettingsSchema { get; }
Property Value
Methods
Apply()
public void Apply()
Bind(string, Object, string, SettingsBindFlags)
[Version("2.26")]
public void Bind(string key, Object @object, string property, SettingsBindFlags flags)
Parameters
key
stringobject
Objectproperty
stringflags
SettingsBindFlags
BindWritable(string, Object, string, bool)
[Version("2.26")]
public void BindWritable(string key, Object @object, string property, bool inverted)
Parameters
CreateAction(string)
[Version("2.32")]
public Action CreateAction(string key)
Parameters
key
string
Returns
Delay()
[Version("2.26")]
public void Delay()
GetBoolean(string)
[Version("2.26")]
public bool GetBoolean(string key)
Parameters
key
string
Returns
GetChild(string)
[Version("2.26")]
public Settings GetChild(string name)
Parameters
name
string
Returns
GetDefaultValue(string)
[Version("2.40")]
public Variant? GetDefaultValue(string key)
Parameters
key
string
Returns
GetDouble(string)
[Version("2.26")]
public double GetDouble(string key)
Parameters
key
string
Returns
GetEnum(string)
[Version("2.26")]
public int GetEnum(string key)
Parameters
key
string
Returns
GetFlags(string)
[Version("2.26")]
public uint GetFlags(string key)
Parameters
key
string
Returns
GetGType()
public static Type GetGType()
Returns
GetHasUnapplied()
[Version("2.26")]
public bool GetHasUnapplied()
Returns
GetInt(string)
[Version("2.26")]
public int GetInt(string key)
Parameters
key
string
Returns
GetInt64(string)
[Version("2.50")]
public long GetInt64(string key)
Parameters
key
string
Returns
GetMapped(string, SettingsGetMapping)
public IntPtr GetMapped(string key, SettingsGetMapping mapping)
Parameters
key
stringmapping
SettingsGetMapping
Returns
GetRange(string)
[Version("2.28")]
public Variant GetRange(string key)
Parameters
key
string
Returns
GetString(string)
[Version("2.26")]
public string GetString(string key)
Parameters
key
string
Returns
GetStrv(string)
[Version("2.26")]
public string[] GetStrv(string key)
Parameters
key
string
Returns
- string[]
GetUint(string)
[Version("2.30")]
public uint GetUint(string key)
Parameters
key
string
Returns
GetUint64(string)
[Version("2.50")]
public ulong GetUint64(string key)
Parameters
key
string
Returns
GetUserValue(string)
[Version("2.40")]
public Variant? GetUserValue(string key)
Parameters
key
string
Returns
GetValue(string)
[Version("2.26")]
public Variant GetValue(string key)
Parameters
key
string
Returns
IsWritable(string)
[Version("2.26")]
public bool IsWritable(string name)
Parameters
name
string
Returns
ListChildren()
public string[] ListChildren()
Returns
- string[]
ListKeys()
public string[] ListKeys()
Returns
- string[]
ListRelocatableSchemas()
[Version("2.28")]
public static string[] ListRelocatableSchemas()
Returns
- string[]
ListSchemas()
[Version("2.26")]
public static string[] ListSchemas()
Returns
- string[]
New(string)
[Version("2.26")]
public static Settings New(string schemaId)
Parameters
schemaId
string
Returns
NewFull(SettingsSchema, SettingsBackend?, string?)
[Version("2.32")]
public static Settings NewFull(SettingsSchema schema, SettingsBackend? backend, string? path)
Parameters
schema
SettingsSchemabackend
SettingsBackendpath
string
Returns
NewWithBackend(string, SettingsBackend)
[Version("2.26")]
public static Settings NewWithBackend(string schemaId, SettingsBackend backend)
Parameters
schemaId
stringbackend
SettingsBackend
Returns
NewWithBackendAndPath(string, SettingsBackend, string)
[Version("2.26")]
public static Settings NewWithBackendAndPath(string schemaId, SettingsBackend backend, string path)
Parameters
schemaId
stringbackend
SettingsBackendpath
string
Returns
NewWithPath(string, string)
[Version("2.26")]
public static Settings NewWithPath(string schemaId, string path)
Parameters
Returns
RangeCheck(string, Variant)
[Version("2.28")]
public bool RangeCheck(string key, Variant value)
Parameters
Returns
Reset(string)
public void Reset(string key)
Parameters
key
string
Revert()
public void Revert()
SetBoolean(string, bool)
[Version("2.26")]
public bool SetBoolean(string key, bool value)
Parameters
Returns
SetDouble(string, double)
[Version("2.26")]
public bool SetDouble(string key, double value)
Parameters
Returns
SetEnum(string, int)
public bool SetEnum(string key, int value)
Parameters
Returns
SetFlags(string, uint)
public bool SetFlags(string key, uint value)
Parameters
Returns
SetInt(string, int)
[Version("2.26")]
public bool SetInt(string key, int value)
Parameters
Returns
SetInt64(string, long)
[Version("2.50")]
public bool SetInt64(string key, long value)
Parameters
Returns
SetString(string, string)
[Version("2.26")]
public bool SetString(string key, string value)
Parameters
Returns
SetStrv(string, string[]?)
[Version("2.26")]
public bool SetStrv(string key, string[]? value)
Parameters
Returns
SetUint(string, uint)
[Version("2.30")]
public bool SetUint(string key, uint value)
Parameters
Returns
SetUint64(string, ulong)
[Version("2.50")]
public bool SetUint64(string key, ulong value)
Parameters
Returns
SetValue(string, Variant)
[Version("2.26")]
public bool SetValue(string key, Variant value)
Parameters
Returns
Sync()
public static void Sync()
Unbind(Object, string)
[Version("2.26")]
public static void Unbind(Object @object, string property)
Parameters
Events
OnChangeEvent
public event ReturningSignalHandler<Settings, Settings.ChangeEventSignalArgs, bool> OnChangeEvent
Event Type
OnChanged
public event SignalHandler<Settings, Settings.ChangedSignalArgs> OnChanged
Event Type
OnWritableChangeEvent
public event ReturningSignalHandler<Settings, Settings.WritableChangeEventSignalArgs, bool> OnWritableChangeEvent
Event Type
OnWritableChanged
public event SignalHandler<Settings, Settings.WritableChangedSignalArgs> OnWritableChanged