pub struct AccessibilitySettings {
pub screen_reader_enabled: bool,
pub high_contrast: bool,
pub contrast_theme: HighContrastTheme,
pub large_text: bool,
pub reduce_motion: bool,
pub sticky_keys: bool,
pub key_repeat_delay: u32,
pub key_repeat_rate: u32,
}Expand description
Global accessibility settings.
Fields§
§screen_reader_enabled: boolWhether the screen reader is enabled.
high_contrast: boolWhether high contrast mode is active.
contrast_theme: HighContrastThemeHigh contrast theme to use.
large_text: boolWhether to use larger text (2x glyph scaling).
reduce_motion: boolWhether to reduce motion/animations.
sticky_keys: boolWhether sticky keys are enabled.
key_repeat_delay: u32Keyboard repeat delay in ticks.
key_repeat_rate: u32Keyboard repeat rate in ticks per character.
Implementations§
Source§impl AccessibilitySettings
impl AccessibilitySettings
Sourcepub fn any_active(&self) -> bool
pub fn any_active(&self) -> bool
Whether any accessibility feature is active.
Trait Implementations§
Source§impl Clone for AccessibilitySettings
impl Clone for AccessibilitySettings
Source§fn clone(&self) -> AccessibilitySettings
fn clone(&self) -> AccessibilitySettings
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccessibilitySettings
impl Debug for AccessibilitySettings
Auto Trait Implementations§
impl Freeze for AccessibilitySettings
impl RefUnwindSafe for AccessibilitySettings
impl Send for AccessibilitySettings
impl Sync for AccessibilitySettings
impl Unpin for AccessibilitySettings
impl UnwindSafe for AccessibilitySettings
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)