1
by Michael Hofmann
Initial public version. |
1 |
[CCode (cprefix = "G", lower_case_cprefix = "g_", gir_namespace = "Gio", gir_version = "2.0")] |
2 |
namespace FixedGSettings { |
|
3 |
[CCode (cheader_filename = "gio/gio.h")] |
|
4 |
public class Settings : GLib.Object { |
|
5 |
[CCode (has_construct_function = false)] |
|
6 |
public Settings (string schema); |
|
7 |
public void apply (); |
|
8 |
public void bind (string key, void* object, string property, GLib.SettingsBindFlags flags); |
|
9 |
public void bind_with_mapping (string key, void* object, string property, GLib.SettingsBindFlags flags, FixedGSettings.SettingsBindGetMapping get_mapping, FixedGSettings.SettingsBindSetMapping set_mapping, void *user_data, GLib.DestroyNotify destroy); |
|
10 |
public void bind_writable (string key, void* object, string property, bool inverted); |
|
11 |
public void delay (); |
|
12 |
[CCode (sentinel = "")] |
|
13 |
public void @get (string key, string format, ...); |
|
14 |
public bool get_boolean (string key); |
|
15 |
public unowned GLib.Settings get_child (string name); |
|
16 |
public double get_double (string key); |
|
17 |
public int get_enum (string key); |
|
18 |
public uint get_flags (string key); |
|
19 |
public bool get_has_unapplied (); |
|
20 |
public int get_int (string key); |
|
21 |
public void* get_mapped (string key, GLib.SettingsGetMapping mapping); |
|
22 |
public unowned GLib.Variant get_range (string key); |
|
23 |
public string get_string (string key); |
|
24 |
[CCode (array_length = false, array_null_terminated = true)] |
|
25 |
public string[] get_strv (string key); |
|
26 |
public GLib.Variant get_value (string key); |
|
27 |
public bool is_writable (string name); |
|
28 |
[CCode (array_length = false, array_null_terminated = true)] |
|
29 |
public string[] list_children (); |
|
30 |
[CCode (array_length = false, array_null_terminated = true)] |
|
31 |
public string[] list_keys (); |
|
32 |
public static unowned string list_relocatable_schemas (); |
|
33 |
[CCode (array_length = false, array_null_terminated = true)] |
|
34 |
public static unowned string[] list_schemas (); |
|
35 |
public bool range_check (string key, GLib.Variant value); |
|
36 |
public void reset (string key); |
|
37 |
public void revert (); |
|
38 |
[CCode (sentinel = "")] |
|
39 |
public bool @set (string key, string format, ...); |
|
40 |
public bool set_boolean (string key, bool value); |
|
41 |
public bool set_double (string key, double value); |
|
42 |
public bool set_enum (string key, int value); |
|
43 |
public bool set_flags (string key, uint value); |
|
44 |
public bool set_int (string key, int value); |
|
45 |
public bool set_string (string key, string value); |
|
46 |
public bool set_strv (string key, [CCode (array_length = false)] string[] value); |
|
47 |
public bool set_value (string key, GLib.Variant value); |
|
48 |
public static void sync (); |
|
49 |
public static void unbind (void* object, string property); |
|
50 |
[CCode (has_construct_function = false)] |
|
51 |
public Settings.with_backend (string schema, GLib.SettingsBackend backend); |
|
52 |
[CCode (has_construct_function = false)] |
|
53 |
public Settings.with_backend_and_path (string schema, GLib.SettingsBackend backend, string path); |
|
54 |
[CCode (has_construct_function = false)] |
|
55 |
public Settings.with_path (string schema, string path); |
|
56 |
[NoAccessorMethod] |
|
57 |
public GLib.SettingsBackend backend { owned get; construct; } |
|
58 |
[NoAccessorMethod] |
|
59 |
public bool delay_apply { get; } |
|
60 |
public bool has_unapplied { get; } |
|
61 |
[NoAccessorMethod] |
|
62 |
public string path { owned get; construct; } |
|
63 |
[NoAccessorMethod] |
|
64 |
public string schema { owned get; construct; } |
|
65 |
public virtual signal bool change_event (void* keys, int n_keys); |
|
66 |
public virtual signal void changed (string key); |
|
67 |
public virtual signal bool writable_change_event (uint key); |
|
68 |
public virtual signal void writable_changed (string key); |
|
69 |
}
|
|
70 |
[CCode (cheader_filename = "gio/gio.h", has_target = false)] |
|
71 |
public delegate bool SettingsBindGetMapping (GLib.Value value, GLib.Variant variant, void *user_data); |
|
72 |
[CCode (cheader_filename = "gio/gio.h", has_target = false)] |
|
73 |
public delegate GLib.Variant SettingsBindSetMapping (GLib.Value value, GLib.VariantType expected_type, void *user_data); |
|
74 |
||
75 |
}
|