Trait SettingsExt

Source
pub trait SettingsExt: 'static {
Show 42 methods // Required 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§

Source

fn apply(&self)

Source

fn bind<P: IsA<Object>>( &self, key: &str, object: &P, property: &str, flags: SettingsBindFlags, )

Source

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 delay(&self)

Source

fn get_boolean(&self, key: &str) -> bool

Source

fn get_child(&self, name: &str) -> Option<Settings>

Source

fn get_default_value(&self, key: &str) -> Option<Variant>

Source

fn get_double(&self, key: &str) -> f64

Source

fn get_enum(&self, key: &str) -> i32

Source

fn get_flags(&self, key: &str) -> u32

Source

fn get_has_unapplied(&self) -> bool

Source

fn get_int(&self, key: &str) -> i32

Source

fn get_string(&self, key: &str) -> Option<GString>

Source

fn get_strv(&self, key: &str) -> Vec<GString>

Source

fn get_uint(&self, key: &str) -> u32

Source

fn get_user_value(&self, key: &str) -> Option<Variant>

Source

fn get_value(&self, key: &str) -> Option<Variant>

Source

fn is_writable(&self, name: &str) -> bool

Source

fn list_children(&self) -> Vec<GString>

Source

fn list_keys(&self) -> Vec<GString>

Source

fn reset(&self, key: &str)

Source

fn revert(&self)

Source

fn set_boolean(&self, key: &str, value: bool) -> bool

Source

fn set_double(&self, key: &str, value: f64) -> bool

Source

fn set_enum(&self, key: &str, value: i32) -> bool

Source

fn set_flags(&self, key: &str, value: u32) -> bool

Source

fn set_int(&self, key: &str, value: i32) -> bool

Source

fn set_string(&self, key: &str, value: &str) -> bool

Source

fn set_strv(&self, key: &str, value: &[&str]) -> bool

Source

fn set_uint(&self, key: &str, value: u32) -> bool

Source

fn set_value(&self, key: &str, value: &Variant) -> 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

Source

fn connect_writable_change_event<F: Fn(&Self, u32) -> Inhibit + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_writable_changed<F: Fn(&Self, &str) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_delay_apply_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_has_unapplied_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§