pub struct DefaultPlatformSettings { /* private fields */ }Expand description
A default implementation of IPlatformSettings for platforms that do
not provide settings of their own, and the base the settings of the
platform backends are built on: a backend embeds one, delegates what it
does not replace and raises the change events through
on_color_values_changed and
on_preferred_application_language_changed.
Implementations§
Source§impl DefaultPlatformSettings
impl DefaultPlatformSettings
Sourcepub fn on_color_values_changed(&self, color_values: PlatformColorValues)
pub fn on_color_values_changed(&self, color_values: PlatformColorValues)
Raises IPlatformSettings::color_values_changed.
The settings belong to the UI thread: a backend that learns about the change on another thread marshals to the UI thread first.
Sourcepub fn on_preferred_application_language_changed(&self)
pub fn on_preferred_application_language_changed(&self)
Raises IPlatformSettings::preferred_application_language_changed.
The settings belong to the UI thread: a backend that learns about the change on another thread marshals to the UI thread first.
Trait Implementations§
Source§impl Default for DefaultPlatformSettings
impl Default for DefaultPlatformSettings
Source§impl IPlatformSettings for DefaultPlatformSettings
impl IPlatformSettings for DefaultPlatformSettings
Source§fn hotkey_configuration(&self) -> Rc<PlatformHotkeyConfiguration>
fn hotkey_configuration(&self) -> Rc<PlatformHotkeyConfiguration>
The hotkey configuration registered with the locator.
Panics if none is registered.
Source§fn preferred_application_language(&self) -> String
fn preferred_application_language(&self) -> String
The language of the user interface the environment asks for
(LC_ALL, LC_MESSAGES, LANG, in this order), or the empty
(invariant) tag when it does not say.
Source§fn get_tap_size(&self, type_: PointerType) -> Size
fn get_tap_size(&self, type_: PointerType) -> Size
Source§fn get_double_tap_size(&self, type_: PointerType) -> Size
fn get_double_tap_size(&self, type_: PointerType) -> Size
Source§fn get_double_tap_time(&self, _type: PointerType) -> Duration
fn get_double_tap_time(&self, _type: PointerType) -> Duration
Source§fn hold_wait_duration(&self) -> Duration
fn hold_wait_duration(&self) -> Duration
Source§fn get_color_values(&self) -> PlatformColorValues
fn get_color_values(&self) -> PlatformColorValues
Source§fn color_values_changed(
&self,
handler: Rc<dyn Fn(&PlatformColorValues)>,
) -> Rc<dyn IDisposable>
fn color_values_changed( &self, handler: Rc<dyn Fn(&PlatformColorValues)>, ) -> Rc<dyn IDisposable>
Source§fn preferred_application_language_changed(
&self,
handler: Rc<dyn Fn()>,
) -> Rc<dyn IDisposable>
fn preferred_application_language_changed( &self, handler: Rc<dyn Fn()>, ) -> Rc<dyn IDisposable>
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultPlatformSettings
impl !Send for DefaultPlatformSettings
impl !Sync for DefaultPlatformSettings
impl !UnwindSafe for DefaultPlatformSettings
impl Freeze for DefaultPlatformSettings
impl Unpin for DefaultPlatformSettings
impl UnsafeUnpin for DefaultPlatformSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more