Struct gio::Settings
[−]
pub struct Settings(_, _);
Methods
impl Settings
[src]
fn new(schema_id: &str) -> Settings
fn new_with_path(schema_id: &str, path: &str) -> Settings
fn apply(&self)
fn bind<P: IsA<Object>>(
&self,
key: &str,
object: &P,
property: &str,
flags: SettingsBindFlags
)
&self,
key: &str,
object: &P,
property: &str,
flags: SettingsBindFlags
)
fn bind_writable<P: IsA<Object>>(
&self,
key: &str,
object: &P,
property: &str,
inverted: bool
)
&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_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_range(&self, key: &str) -> Option<Variant>
fn get_string(&self, key: &str) -> Option<String>
fn get_strv(&self, key: &str) -> Vec<String>
fn get_uint(&self, key: &str) -> u32
fn get_value(&self, key: &str) -> Option<Variant>
fn is_writable(&self, name: &str) -> bool
fn list_children(&self) -> Vec<String>
fn list_keys(&self) -> Vec<String>
fn range_check(&self, key: &str, value: &Variant) -> bool
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_delay_apply(&self) -> bool
fn get_property_has_unapplied(&self) -> bool
fn get_property_path(&self) -> Option<String>
fn get_property_schema(&self) -> Option<String>
fn get_property_schema_id(&self) -> Option<String>
fn list_relocatable_schemas() -> Vec<String>
fn list_schemas() -> Vec<String>
fn sync()
fn unbind<P: IsA<Object>>(object: &P, property: &str)
fn connect_changed<F: Fn(&Settings, &str) + 'static>(&self, f: F) -> u64
fn connect_writable_change_event<F: Fn(&Settings, u32) -> Inhibit + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_writable_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
Trait Implementations
impl Clone for Settings
fn clone(&self) -> Settings
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Settings
impl Hash for Settings
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl StaticType for Settings
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for Settings
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.