pub enum BackdropMaterial {
UltraThin,
Thin,
Regular,
Thick,
Chrome,
}Expand description
ios={{ backdropMaterial }}: the system material a backdropFilter blur draws.
iOS blurs a backdrop with a material rather than a plain Gaussian blur: each one blurs and tints by a fixed amount, and the thicker it is, the less of what is behind it comes through. A navigation bar over scrolling content usually wants a thicker one than the thinnest, which on its own is too faint to keep its contents legible.
There is no CSS for this – backdrop-filter only describes filters –
so the names follow Apple’s UIBlurEffectStyle.system*Material.
Read on iOS, where it picks the material; the blur’s radius still sets how strongly it is applied, as an approximation rather than a Gaussian radius.
Variants§
UltraThin
The thinnest material, the most of what is behind coming through.
Thin
Thin.
Regular
The standard material.
Thick
Thick, letting little through.
Chrome
The material of system chrome, such as a toolbar.
Implementations§
Source§impl BackdropMaterial
impl BackdropMaterial
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The iOS prop name (BackdropMaterial::parse’s input).
Sourcepub fn parse(s: &str) -> Option<BackdropMaterial>
pub fn parse(s: &str) -> Option<BackdropMaterial>
Parses a material name.
Trait Implementations§
Source§impl Clone for BackdropMaterial
impl Clone for BackdropMaterial
impl Copy for BackdropMaterial
Source§impl Debug for BackdropMaterial
impl Debug for BackdropMaterial
Source§impl Default for BackdropMaterial
impl Default for BackdropMaterial
impl Eq for BackdropMaterial
Source§impl HostValue for BackdropMaterial
impl HostValue for BackdropMaterial
Source§impl JsValue for BackdropMaterial
impl JsValue for BackdropMaterial
Source§impl PartialEq for BackdropMaterial
impl PartialEq for BackdropMaterial
Source§impl PropEnum for BackdropMaterial
impl PropEnum for BackdropMaterial
impl StructuralPartialEq for BackdropMaterial
Auto Trait Implementations§
impl Forget for BackdropMaterial
impl Freeze for BackdropMaterial
impl Move for BackdropMaterial
impl RefUnwindSafe for BackdropMaterial
impl Send for BackdropMaterial
impl Sync for BackdropMaterial
impl Unpin for BackdropMaterial
impl UnsafeUnpin for BackdropMaterial
impl UnwindSafe for BackdropMaterial
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> CallbackArgs for Twhere
T: Ret,
impl<T> CallbackArgs for Twhere
T: Ret,
Source§fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
names (name: string, amount: number), or without names value for one and a, b, … for
several.