Trait gio::prelude::SettingsExt
source · [−]pub trait SettingsExt: 'static {
Show 42 methods
fn apply(&self);
fn bind<P: IsA<Object>>(
&self,
key: &str,
object: &P,
property: &str,
flags: SettingsBindFlags
);
fn bind_writable<P: IsA<Object>>(
&self,
key: &str,
object: &P,
property: &str,
inverted: bool
);
fn create_action(&self, key: &str) -> Option<Action>;
fn delay(&self);
fn get_boolean(&self, key: &str) -> bool;
fn get_child(&self, name: &str) -> Option<Settings>;
fn get_default_value(&self, key: &str) -> Option<Variant>;
fn get_double(&self, key: &str) -> f64;
fn get_enum(&self, key: &str) -> i32;
fn get_flags(&self, key: &str) -> u32;
fn get_has_unapplied(&self) -> bool;
fn get_int(&self, key: &str) -> i32;
fn get_string(&self, key: &str) -> Option<GString>;
fn get_strv(&self, key: &str) -> Vec<GString>;
fn get_uint(&self, key: &str) -> u32;
fn get_user_value(&self, key: &str) -> Option<Variant>;
fn get_value(&self, key: &str) -> Option<Variant>;
fn is_writable(&self, name: &str) -> bool;
fn list_children(&self) -> Vec<GString>;
fn list_keys(&self) -> Vec<GString>;
fn reset(&self, key: &str);
fn revert(&self);
fn set_boolean(&self, key: &str, value: bool) -> bool;
fn set_double(&self, key: &str, value: f64) -> bool;
fn set_enum(&self, key: &str, value: i32) -> bool;
fn set_flags(&self, key: &str, value: u32) -> bool;
fn set_int(&self, key: &str, value: i32) -> bool;
fn set_string(&self, key: &str, value: &str) -> bool;
fn set_strv(&self, key: &str, value: &[&str]) -> bool;
fn set_uint(&self, key: &str, value: u32) -> bool;
fn set_value(&self, key: &str, value: &Variant) -> bool;
fn get_property_backend(&self) -> Option<SettingsBackend>;
fn get_property_delay_apply(&self) -> bool;
fn get_property_path(&self) -> Option<GString>;
fn get_property_schema_id(&self) -> Option<GString>;
fn get_property_settings_schema(&self) -> Option<SettingsSchema>;
fn connect_changed<F: Fn(&Self, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_writable_change_event<F: Fn(&Self, u32) -> Inhibit + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_writable_changed<F: Fn(&Self, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_property_delay_apply_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_property_has_unapplied_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}Required Methods
sourcefn bind<P: IsA<Object>>(
fn bind<P: IsA<Object>>(
&self,
key: &str,
object: &P,
property: &str,
flags: SettingsBindFlags
)
sourcefn bind_writable<P: IsA<Object>>(
fn bind_writable<P: IsA<Object>>(
&self,
key: &str,
object: &P,
property: &str,
inverted: bool
)
source
fn create_action(&self, key: &str) -> Option<Action>
source
fn get_boolean(&self, key: &str) -> bool
source
fn get_default_value(&self, key: &str) -> Option<Variant>
source
fn get_double(&self, key: &str) -> f64
source
fn get_has_unapplied(&self) -> bool
source
fn get_string(&self, key: &str) -> Option<GString>
source
fn get_user_value(&self, key: &str) -> Option<Variant>
source
fn is_writable(&self, name: &str) -> bool
source
fn list_children(&self) -> Vec<GString>
source
fn set_boolean(&self, key: &str, value: bool) -> bool
source
fn set_double(&self, key: &str, value: f64) -> bool
source
fn set_string(&self, key: &str, value: &str) -> bool
source
fn get_property_backend(&self) -> Option<SettingsBackend>
source
fn get_property_delay_apply(&self) -> bool
source
fn get_property_path(&self) -> Option<GString>
source
fn get_property_schema_id(&self) -> Option<GString>
source
fn get_property_settings_schema(&self) -> Option<SettingsSchema>
source
fn connect_changed<F: Fn(&Self, &str) + 'static>(&self, f: F) -> SignalHandlerId
sourcefn connect_writable_change_event<F: Fn(&Self, u32) -> Inhibit + 'static>(
fn connect_writable_change_event<F: Fn(&Self, u32) -> Inhibit + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_writable_changed<F: Fn(&Self, &str) + 'static>(
fn connect_writable_changed<F: Fn(&Self, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_delay_apply_notify<F: Fn(&Self) + 'static>(
fn connect_property_delay_apply_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_has_unapplied_notify<F: Fn(&Self) + 'static>(