Trait gio::prelude::SettingsExt

source ·
pub trait SettingsExt: 'static {
Show 44 methods // Required methods fn apply(&self); fn bind_writable( &self, key: &str, object: &impl IsA<Object>, property: &str, inverted: bool ); fn create_action(&self, key: &str) -> Action; fn delay(&self); fn boolean(&self, key: &str) -> bool; fn child(&self, name: &str) -> Settings; fn default_value(&self, key: &str) -> Option<Variant>; fn double(&self, key: &str) -> f64; fn enum_(&self, key: &str) -> i32; fn flags(&self, key: &str) -> u32; fn has_unapplied(&self) -> bool; fn int(&self, key: &str) -> i32; fn int64(&self, key: &str) -> i64; fn string(&self, key: &str) -> GString; fn strv(&self, key: &str) -> Vec<GString>; fn uint(&self, key: &str) -> u32; fn uint64(&self, key: &str) -> u64; fn user_value(&self, key: &str) -> Option<Variant>; fn value(&self, key: &str) -> Variant; fn is_writable(&self, name: &str) -> bool; fn list_children(&self) -> Vec<GString>; fn reset(&self, key: &str); fn revert(&self); fn set_boolean(&self, key: &str, value: bool) -> Result<(), BoolError>; fn set_double(&self, key: &str, value: f64) -> Result<(), BoolError>; fn set_enum(&self, key: &str, value: i32) -> Result<(), BoolError>; fn set_flags(&self, key: &str, value: u32) -> Result<(), BoolError>; fn set_int(&self, key: &str, value: i32) -> Result<(), BoolError>; fn set_int64(&self, key: &str, value: i64) -> Result<(), BoolError>; fn set_string(&self, key: &str, value: &str) -> Result<(), BoolError>; fn set_strv(&self, key: &str, value: &[&str]) -> Result<(), BoolError>; fn set_uint(&self, key: &str, value: u32) -> Result<(), BoolError>; fn set_uint64(&self, key: &str, value: u64) -> Result<(), BoolError>; fn set_value(&self, key: &str, value: &Variant) -> Result<(), BoolError>; fn backend(&self) -> Option<SettingsBackend>; fn is_delay_apply(&self) -> bool; fn path(&self) -> Option<GString>; fn schema_id(&self) -> Option<GString>; fn settings_schema(&self) -> Option<SettingsSchema>; fn connect_changed<F: Fn(&Self, &str) + 'static>( &self, detail: Option<&str>, 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, detail: Option<&str>, f: F ) -> SignalHandlerId; fn connect_delay_apply_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_has_unapplied_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

fn apply(&self)

source

fn bind_writable( &self, key: &str, object: &impl IsA<Object>, property: &str, inverted: bool )

source

fn create_action(&self, key: &str) -> Action

source

fn delay(&self)

source

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

source

fn child(&self, name: &str) -> Settings

source

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

source

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

source

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

source

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

source

fn has_unapplied(&self) -> bool

source

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

source

fn int64(&self, key: &str) -> i64

source

fn string(&self, key: &str) -> GString

source

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

source

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

source

fn uint64(&self, key: &str) -> u64

source

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

source

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

source

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

source

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

source

fn reset(&self, key: &str)

source

fn revert(&self)

source

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

source

fn set_double(&self, key: &str, value: f64) -> Result<(), BoolError>

source

fn set_enum(&self, key: &str, value: i32) -> Result<(), BoolError>

source

fn set_flags(&self, key: &str, value: u32) -> Result<(), BoolError>

source

fn set_int(&self, key: &str, value: i32) -> Result<(), BoolError>

source

fn set_int64(&self, key: &str, value: i64) -> Result<(), BoolError>

source

fn set_string(&self, key: &str, value: &str) -> Result<(), BoolError>

source

fn set_strv(&self, key: &str, value: &[&str]) -> Result<(), BoolError>

source

fn set_uint(&self, key: &str, value: u32) -> Result<(), BoolError>

source

fn set_uint64(&self, key: &str, value: u64) -> Result<(), BoolError>

source

fn set_value(&self, key: &str, value: &Variant) -> Result<(), BoolError>

source

fn backend(&self) -> Option<SettingsBackend>

source

fn is_delay_apply(&self) -> bool

source

fn path(&self) -> Option<GString>

source

fn schema_id(&self) -> Option<GString>

source

fn settings_schema(&self) -> Option<SettingsSchema>

source

fn connect_changed<F: Fn(&Self, &str) + 'static>( &self, detail: Option<&str>, 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, detail: Option<&str>, f: F ) -> SignalHandlerId

source

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

source

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

Implementors§