Struct style::properties::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.