gio::prelude

Trait SettingsExt

Source
pub trait SettingsExt:
    IsA<Settings>
    + Sealed
    + 'static {
Show 43 methods // Provided methods fn apply(&self) { ... } fn bind_with_mapping_closures( &self, key: &str, object: &impl IsA<Object>, property: &str, flags: SettingsBindFlags, get_mapping: Option<&Closure>, set_mapping: Option<&Closure>, ) { ... } 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 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_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) -> Propagation + '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 { ... }
}

Provided Methods§

Source

fn apply(&self)

Source

fn bind_with_mapping_closures( &self, key: &str, object: &impl IsA<Object>, property: &str, flags: SettingsBindFlags, get_mapping: Option<&Closure>, set_mapping: Option<&Closure>, )

Available on crate feature v2_82 only.
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 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_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) -> Propagation + '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

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§