pub struct NativeLiquidGlassScope {
pub group_id: u32,
pub spacing: f64,
pub interactive: bool,
pub tint: Option<Color>,
pub variant: String,
}Expand description
Runtime-inherited Apple liquid-glass effect scope.
Fields§
§group_id: u32Stable node id for the nearest liquid-glass scope.
spacing: f64Desired spacing between grouped glass surfaces, in pixels.
interactive: boolWhether supported Apple surfaces should use the interactive glass effect.
tint: Option<Color>Optional tint for supported Apple surfaces.
variant: StringApple glass style name, currently “regular” or “clear”.
Implementations§
Source§impl NativeLiquidGlassScope
impl NativeLiquidGlassScope
Sourcepub fn to_message(&self) -> AppleLiquidGlassPatch
pub fn to_message(&self) -> AppleLiquidGlassPatch
Converts runtime style data into the serialized native-message payload.
Trait Implementations§
Source§impl Clone for NativeLiquidGlassScope
impl Clone for NativeLiquidGlassScope
Source§fn clone(&self) -> NativeLiquidGlassScope
fn clone(&self) -> NativeLiquidGlassScope
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 moreSource§impl Debug for NativeLiquidGlassScope
impl Debug for NativeLiquidGlassScope
Source§impl Default for NativeLiquidGlassScope
impl Default for NativeLiquidGlassScope
Source§fn default() -> NativeLiquidGlassScope
fn default() -> NativeLiquidGlassScope
Returns the “default value” for a type. Read more
Source§impl Interpolatable for NativeLiquidGlassScope
impl Interpolatable for NativeLiquidGlassScope
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl PartialEq for NativeLiquidGlassScope
impl PartialEq for NativeLiquidGlassScope
impl StructuralPartialEq for NativeLiquidGlassScope
Auto Trait Implementations§
impl Freeze for NativeLiquidGlassScope
impl RefUnwindSafe for NativeLiquidGlassScope
impl Send for NativeLiquidGlassScope
impl Sync for NativeLiquidGlassScope
impl Unpin for NativeLiquidGlassScope
impl UnsafeUnpin for NativeLiquidGlassScope
impl UnwindSafe for NativeLiquidGlassScope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> PropertyValue for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.