pub struct Settings(_);
Implementations§
source§impl Settings
impl Settings
sourcepub fn did_initial_setup(&self) -> bool
pub fn did_initial_setup(&self) -> bool
Get value of GSettings key
sourcepub fn set_did_initial_setup(&self, value: bool)
pub fn set_did_initial_setup(&self, value: bool)
Set value of GSettings key
sourcepub fn connect_did_initial_setup_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_did_initial_setup_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to value changes of this key. Keep in mind that the key has to be read once before connecting or this won’t do anything!
sourcepub fn enable_notifications(&self) -> bool
pub fn enable_notifications(&self) -> bool
Get value of GSettings key
sourcepub fn set_enable_notifications(&self, value: bool)
pub fn set_enable_notifications(&self, value: bool)
Set value of GSettings key
sourcepub fn connect_enable_notifications_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_enable_notifications_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to value changes of this key. Keep in mind that the key has to be read once before connecting or this won’t do anything!
sourcepub fn sync_provider_setup_google_fit(&self) -> bool
pub fn sync_provider_setup_google_fit(&self) -> bool
Get value of GSettings key
sourcepub fn set_sync_provider_setup_google_fit(&self, value: bool)
pub fn set_sync_provider_setup_google_fit(&self, value: bool)
Set value of GSettings key
sourcepub fn connect_sync_provider_setup_google_fit_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_sync_provider_setup_google_fit_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to value changes of this key. Keep in mind that the key has to be read once before connecting or this won’t do anything!
sourcepub fn set_user_age(&self, value: u32)
pub fn set_user_age(&self, value: u32)
Set value of GSettings key
sourcepub fn connect_user_age_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_user_age_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to value changes of this key. Keep in mind that the key has to be read once before connecting or this won’t do anything!
sourcepub fn user_step_goal(&self) -> u32
pub fn user_step_goal(&self) -> u32
Get value of GSettings key
sourcepub fn set_user_step_goal(&self, value: u32)
pub fn set_user_step_goal(&self, value: u32)
Set value of GSettings key
sourcepub fn connect_user_step_goal_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_user_step_goal_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to value changes of this key. Keep in mind that the key has to be read once before connecting or this won’t do anything!
sourcepub fn window_height(&self) -> i32
pub fn window_height(&self) -> i32
Get value of GSettings key
sourcepub fn set_window_height(&self, value: i32)
pub fn set_window_height(&self, value: i32)
Set value of GSettings key
sourcepub fn connect_window_height_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_window_height_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to value changes of this key. Keep in mind that the key has to be read once before connecting or this won’t do anything!
sourcepub fn window_is_maximized(&self) -> bool
pub fn window_is_maximized(&self) -> bool
Get value of GSettings key
sourcepub fn set_window_is_maximized(&self, value: bool)
pub fn set_window_is_maximized(&self, value: bool)
Set value of GSettings key
sourcepub fn connect_window_is_maximized_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_window_is_maximized_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to value changes of this key. Keep in mind that the key has to be read once before connecting or this won’t do anything!
sourcepub fn window_width(&self) -> i32
pub fn window_width(&self) -> i32
Get value of GSettings key
sourcepub fn set_window_width(&self, value: i32)
pub fn set_window_width(&self, value: i32)
Set value of GSettings key
sourcepub fn connect_window_width_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_window_width_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to value changes of this key. Keep in mind that the key has to be read once before connecting or this won’t do anything!
sourcepub fn active_user_id(&self) -> u32
pub fn active_user_id(&self) -> u32
Get value of GSettings key
sourcepub fn set_active_user_id(&self, value: u32)
pub fn set_active_user_id(&self, value: u32)
Set value of GSettings key
sourcepub fn connect_active_user_id_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_active_user_id_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to value changes of this key. Keep in mind that the key has to be read once before connecting or this won’t do anything!
pub fn bind<'a, P: IsA<Object>>( &'a self, key: &'a str, object: &'a P, property: &'a str ) -> BindingBuilder<'a>
pub fn connect_changed<F: Fn(&Settings, &str) + 'static>( &self, detail: Option<&str>, f: F ) -> SignalHandlerId
pub fn disconnect(&self, handler_id: SignalHandlerId)
source§impl Settings
impl Settings
pub fn instance() -> Self
sourcepub fn enabled_plugins(&self) -> Vec<PluginName>
pub fn enabled_plugins(&self) -> Vec<PluginName>
Get an array of recent activity IDs.
sourcepub fn set_enabled_plugins(&self, value: &[PluginName])
pub fn set_enabled_plugins(&self, value: &[PluginName])
Set an array of recent activity IDs.
sourcepub fn recent_activity_types(&self) -> Vec<String>
pub fn recent_activity_types(&self) -> Vec<String>
Get an array of recent activity IDs.
sourcepub fn set_recent_activity_types(&self, value: &[&str])
pub fn set_recent_activity_types(&self, value: &[&str])
Set an array of recent activity IDs.
sourcepub fn timestamp_last_sync_google_fit(&self) -> DateTime
pub fn timestamp_last_sync_google_fit(&self) -> DateTime
Get the timestamp of the last sync with Google Fit.
sourcepub fn set_timestamp_last_sync_google_fit(&self, value: DateTime)
pub fn set_timestamp_last_sync_google_fit(&self, value: DateTime)
Set the timestamp of the last sync with Google Fit.
sourcepub fn connect_unit_system_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_unit_system_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to the unitsystem
key changing. Keep in mind that the key has to be read once before connecting or this won’t do anything!
sourcepub fn notification_frequency(&self) -> NotificationFrequency
pub fn notification_frequency(&self) -> NotificationFrequency
Get the current notification frequency.
sourcepub fn set_notification_frequency(&self, value: NotificationFrequency)
pub fn set_notification_frequency(&self, value: NotificationFrequency)
Set the current notification frequency.
sourcepub fn connect_notification_frequency_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_notification_frequency_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to the notification-frequency
key changing. Keep in mind that the key has to be read once before connecting or this won’t do anything!
pub fn notification_time(&self) -> Time
pub fn set_notification_time(&self, value: Time)
sourcepub fn connect_notification_time_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_notification_time_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to the notification-time
key changing. Keep in mind that the key has to be read once before connecting or this won’t do anything!
sourcepub fn unit_system(&self) -> UnitSystem
pub fn unit_system(&self) -> UnitSystem
Get the current unit system.
sourcepub fn set_unit_system(&self, value: UnitSystem)
pub fn set_unit_system(&self, value: UnitSystem)
Set the current unit system.
sourcepub fn user_birthday(&self) -> Option<DateTime>
pub fn user_birthday(&self) -> Option<DateTime>
Get the timestamp of the last sync with Google Fit.
sourcepub fn set_user_birthday(&self, value: DateTime)
pub fn set_user_birthday(&self, value: DateTime)
Set the timestamp of the last sync with Google Fit.
sourcepub fn user_height(&self) -> Length
pub fn user_height(&self) -> Length
Get the user’s height.
sourcepub fn set_user_height(&self, value: Length)
pub fn set_user_height(&self, value: Length)
Set the user’s height.
sourcepub fn connect_user_weight_goal_changed<F: Fn(&Settings, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_user_weight_goal_changed<F: Fn(&Settings, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Connect to the user-weightgoal
key changing. Keep in mind that the key has to be read once before connecting or this won’t do anything!
sourcepub fn user_weight_goal(&self) -> Option<Mass>
pub fn user_weight_goal(&self) -> Option<Mass>
Get the user’s current weightgoal.
sourcepub fn set_user_weight_goal(&self, value: Mass)
pub fn set_user_weight_goal(&self, value: Mass)
Set the user’s current weightgoal.