pub struct FocusDescriptor {
pub widget: WidgetId,
pub indicator_area_px: f64,
pub indicator_contrast: f64,
}Expand description
Raw input for focus appearance factory methods.
Fields§
§widget: WidgetIdWidget whose focus indicator is being validated.
indicator_area_px: f64Area of the focus indicator in CSS pixels².
WCAG 2.4.11 minimum: perimeter of the component × 2 px.
indicator_contrast: f64Contrast ratio between the indicator colour and its adjacent colours.
WCAG 2.4.11 minimum: 3:1.
Trait Implementations§
Source§impl Clone for FocusDescriptor
impl Clone for FocusDescriptor
Source§fn clone(&self) -> FocusDescriptor
fn clone(&self) -> FocusDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FocusDescriptor
Source§impl Debug for FocusDescriptor
impl Debug for FocusDescriptor
Source§impl PartialEq for FocusDescriptor
impl PartialEq for FocusDescriptor
Source§fn eq(&self, other: &FocusDescriptor) -> bool
fn eq(&self, other: &FocusDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FocusDescriptor
Auto Trait Implementations§
impl Freeze for FocusDescriptor
impl RefUnwindSafe for FocusDescriptor
impl Send for FocusDescriptor
impl Sync for FocusDescriptor
impl Unpin for FocusDescriptor
impl UnsafeUnpin for FocusDescriptor
impl UnwindSafe for FocusDescriptor
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
Mutably borrows from an owned value. Read more