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§
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 string(&self, key: &str) -> GString
fn strv(&self, key: &str) -> Vec<GString>
fn uint(&self, key: &str) -> u32
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>
sourcefn set_int64(&self, key: &str, value: i64) -> Result<(), BoolError>
fn set_int64(&self, key: &str, value: i64) -> Result<(), BoolError>
Available on crate feature
v2_50
only.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>
sourcefn set_uint64(&self, key: &str, value: u64) -> Result<(), BoolError>
fn set_uint64(&self, key: &str, value: u64) -> Result<(), BoolError>
Available on crate feature
v2_50
only.