pub struct Effects {
pub backdrop_filter: T,
pub box_shadow: T,
pub clip: T,
pub filter: T,
pub opacity: T,
pub mix_blend_mode: T,
}Expand description
The Effects style struct.
Fields§
§backdrop_filter: TThe backdrop-filter computed value.
box_shadow: TThe box-shadow computed value.
clip: TThe clip computed value.
filter: TThe filter computed value.
opacity: TThe opacity computed value.
mix_blend_mode: TThe mix-blend-mode computed value.
Implementations§
Source§impl Effects
impl Effects
Sourcepub fn set_backdrop_filter(&mut self, v: T)
pub fn set_backdrop_filter(&mut self, v: T)
Set backdrop-filter.
Sourcepub fn copy_backdrop_filter_from(&mut self, other: &Self)
pub fn copy_backdrop_filter_from(&mut self, other: &Self)
Set backdrop-filter from other struct.
Sourcepub fn reset_backdrop_filter(&mut self, other: &Self)
pub fn reset_backdrop_filter(&mut self, other: &Self)
Reset backdrop-filter from the initial struct.
Sourcepub fn get_backdrop_filter(&self) -> &T
pub fn get_backdrop_filter(&self) -> &T
Get a reference to the computed value for backdrop-filter.
Sourcepub fn slow_clone_backdrop_filter(&self) -> T
pub fn slow_clone_backdrop_filter(&self) -> T
Clone the computed value for backdrop-filter. Prefer
get_backdrop_filter where a reference is enough.
Sourcepub fn backdrop_filter_equals(&self, other: &Self) -> bool
pub fn backdrop_filter_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for backdrop-filter.
Sourcepub fn set_box_shadow(&mut self, v: T)
pub fn set_box_shadow(&mut self, v: T)
Set box-shadow.
Sourcepub fn copy_box_shadow_from(&mut self, other: &Self)
pub fn copy_box_shadow_from(&mut self, other: &Self)
Set box-shadow from other struct.
Sourcepub fn reset_box_shadow(&mut self, other: &Self)
pub fn reset_box_shadow(&mut self, other: &Self)
Reset box-shadow from the initial struct.
Sourcepub fn get_box_shadow(&self) -> &T
pub fn get_box_shadow(&self) -> &T
Get a reference to the computed value for box-shadow.
Sourcepub fn slow_clone_box_shadow(&self) -> T
pub fn slow_clone_box_shadow(&self) -> T
Clone the computed value for box-shadow. Prefer
get_box_shadow where a reference is enough.
Sourcepub fn box_shadow_equals(&self, other: &Self) -> bool
pub fn box_shadow_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for box-shadow.
Sourcepub fn copy_clip_from(&mut self, other: &Self)
pub fn copy_clip_from(&mut self, other: &Self)
Set clip from other struct.
Sourcepub fn reset_clip(&mut self, other: &Self)
pub fn reset_clip(&mut self, other: &Self)
Reset clip from the initial struct.
Sourcepub fn slow_clone_clip(&self) -> T
pub fn slow_clone_clip(&self) -> T
Clone the computed value for clip. Prefer
get_clip where a reference is enough.
Sourcepub fn clip_equals(&self, other: &Self) -> bool
pub fn clip_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for clip.
Sourcepub fn set_filter(&mut self, v: T)
pub fn set_filter(&mut self, v: T)
Set filter.
Sourcepub fn copy_filter_from(&mut self, other: &Self)
pub fn copy_filter_from(&mut self, other: &Self)
Set filter from other struct.
Sourcepub fn reset_filter(&mut self, other: &Self)
pub fn reset_filter(&mut self, other: &Self)
Reset filter from the initial struct.
Sourcepub fn get_filter(&self) -> &T
pub fn get_filter(&self) -> &T
Get a reference to the computed value for filter.
Sourcepub fn slow_clone_filter(&self) -> T
pub fn slow_clone_filter(&self) -> T
Clone the computed value for filter. Prefer
get_filter where a reference is enough.
Sourcepub fn filter_equals(&self, other: &Self) -> bool
pub fn filter_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for filter.
Sourcepub fn set_opacity(&mut self, v: T)
pub fn set_opacity(&mut self, v: T)
Set opacity.
Sourcepub fn copy_opacity_from(&mut self, other: &Self)
pub fn copy_opacity_from(&mut self, other: &Self)
Set opacity from other struct.
Sourcepub fn reset_opacity(&mut self, other: &Self)
pub fn reset_opacity(&mut self, other: &Self)
Reset opacity from the initial struct.
Sourcepub fn get_opacity(&self) -> &T
pub fn get_opacity(&self) -> &T
Get a reference to the computed value for opacity.
Sourcepub fn slow_clone_opacity(&self) -> T
pub fn slow_clone_opacity(&self) -> T
Clone the computed value for opacity. Prefer
get_opacity where a reference is enough.
Sourcepub fn opacity_equals(&self, other: &Self) -> bool
pub fn opacity_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for opacity.
Sourcepub fn set_mix_blend_mode(&mut self, v: T)
pub fn set_mix_blend_mode(&mut self, v: T)
Set mix-blend-mode.
Sourcepub fn copy_mix_blend_mode_from(&mut self, other: &Self)
pub fn copy_mix_blend_mode_from(&mut self, other: &Self)
Set mix-blend-mode from other struct.
Sourcepub fn reset_mix_blend_mode(&mut self, other: &Self)
pub fn reset_mix_blend_mode(&mut self, other: &Self)
Reset mix-blend-mode from the initial struct.
Sourcepub fn get_mix_blend_mode(&self) -> &T
pub fn get_mix_blend_mode(&self) -> &T
Get a reference to the computed value for mix-blend-mode.
Sourcepub fn slow_clone_mix_blend_mode(&self) -> T
pub fn slow_clone_mix_blend_mode(&self) -> T
Clone the computed value for mix-blend-mode. Prefer
get_mix_blend_mode where a reference is enough.
Sourcepub fn mix_blend_mode_equals(&self, other: &Self) -> bool
pub fn mix_blend_mode_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for mix-blend-mode.
Trait Implementations§
Source§impl MallocSizeOf for Effects
impl MallocSizeOf for Effects
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
impl StructuralPartialEq for Effects
Auto Trait Implementations§
impl Freeze for Effects
impl RefUnwindSafe for Effects
impl Send for Effects
impl Sync for Effects
impl Unpin for Effects
impl UnsafeUnpin for Effects
impl UnwindSafe for Effects
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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