pub enum IsolatedEffect {
Opacity(f32),
Blur {
radius_px: f32,
},
}Expand description
Linear post-effect applied after content render, before composite.
§Examples
use ailloli_ui_render_wgpu::IsolatedEffect;
let effect = IsolatedEffect::Blur { radius_px: 8.0 };
assert!(matches!(effect, IsolatedEffect::Blur { radius_px: 8.0 }));Variants§
Opacity(f32)
Multiplies the composited group alpha; 1.0 leaves it unchanged.
Blur
Applies a blur whose radius is measured in physical pixels.
Trait Implementations§
Source§impl Clone for IsolatedEffect
impl Clone for IsolatedEffect
Source§fn clone(&self) -> IsolatedEffect
fn clone(&self) -> IsolatedEffect
Returns a copy of the value. Read more
1.0.0 · 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 IsolatedEffect
impl Debug for IsolatedEffect
Source§impl PartialEq for IsolatedEffect
impl PartialEq for IsolatedEffect
impl Copy for IsolatedEffect
impl StructuralPartialEq for IsolatedEffect
Auto Trait Implementations§
impl Freeze for IsolatedEffect
impl RefUnwindSafe for IsolatedEffect
impl Send for IsolatedEffect
impl Sync for IsolatedEffect
impl Unpin for IsolatedEffect
impl UnwindSafe for IsolatedEffect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more