Struct style::properties::generated::style_structs::Effects
source · pub struct Effects {
pub opacity: T,
pub box_shadow: T,
pub clip: T,
pub filter: T,
pub mix_blend_mode: T,
}
Expand description
The Effects style struct.
Fields§
§opacity: T
The opacity computed value.
box_shadow: T
The box-shadow computed value.
clip: T
The clip computed value.
filter: T
The filter computed value.
mix_blend_mode: T
The mix-blend-mode computed value.
Implementations§
source§impl Effects
impl Effects
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 clone_opacity(&self) -> T
pub fn clone_opacity(&self) -> T
Get the computed value for opacity.
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 clone_box_shadow(&self) -> T
pub fn clone_box_shadow(&self) -> T
Get the 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 clone_clip(&self) -> T
pub fn clone_clip(&self) -> T
Get the 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 clone_filter(&self) -> T
pub fn clone_filter(&self) -> T
Get the computed value for filter.
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 clone_mix_blend_mode(&self) -> T
pub fn clone_mix_blend_mode(&self) -> T
Get the 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
source§impl PartialEq for Effects
impl PartialEq for Effects
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 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> 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