Trait sourceview5::prelude::SettingsExt
source · pub trait SettingsExt: IsA<Settings> + Sealed + 'static {
Show 42 methods
// Provided 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 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>(&self, detail: Option<&str>, f: F) -> SignalHandlerId
where F: Fn(&Self, &str) + 'static { ... }
fn connect_writable_change_event<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self, u32) -> Propagation + 'static { ... }
fn connect_writable_changed<F>(
&self,
detail: Option<&str>,
f: F,
) -> SignalHandlerId
where F: Fn(&Self, &str) + 'static { ... }
fn connect_delay_apply_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_has_unapplied_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
}
Provided 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 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>(&self, detail: Option<&str>, f: F) -> SignalHandlerId
fn connect_writable_change_event<F>(&self, f: F) -> SignalHandlerId
fn connect_writable_changed<F>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId
fn connect_delay_apply_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_has_unapplied_notify<F>(&self, f: F) -> SignalHandlerId
Object Safety§
This trait is not object safe.