Struct style::properties::style_structs::Effects
[−]
[src]
pub struct Effects { pub opacity: T, pub box_shadow: T, pub clip: T, pub filter: T, pub mix_blend_mode: T, }
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.
Methods
impl Effects
[src]
pub fn set_opacity(&mut self, v: T)
[src]
Set opacity.
pub fn copy_opacity_from(&mut self, other: &Self)
[src]
Set opacity from other struct.
pub fn reset_opacity(&mut self, other: &Self)
[src]
Reset opacity from the initial struct.
pub fn clone_opacity(&self) -> T
[src]
Get the computed value for opacity.
pub fn set_box_shadow<I>(&mut self, v: I) where
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
[src]
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
Set box-shadow.
pub fn copy_box_shadow_from(&mut self, other: &Self)
[src]
Set box-shadow from other struct.
pub fn reset_box_shadow(&mut self, other: &Self)
[src]
Reset box-shadow from the initial struct.
pub fn clone_box_shadow(&self) -> T
[src]
Get the computed value for box-shadow.
pub fn set_clip(&mut self, v: T)
[src]
Set clip.
pub fn copy_clip_from(&mut self, other: &Self)
[src]
Set clip from other struct.
pub fn reset_clip(&mut self, other: &Self)
[src]
Reset clip from the initial struct.
pub fn clone_clip(&self) -> T
[src]
Get the computed value for clip.
pub fn set_filter<I>(&mut self, v: I) where
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
[src]
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
Set filter.
pub fn copy_filter_from(&mut self, other: &Self)
[src]
Set filter from other struct.
pub fn reset_filter(&mut self, other: &Self)
[src]
Reset filter from the initial struct.
pub fn clone_filter(&self) -> T
[src]
Get the computed value for filter.
pub fn set_mix_blend_mode(&mut self, v: T)
[src]
Set mix-blend-mode.
pub fn copy_mix_blend_mode_from(&mut self, other: &Self)
[src]
Set mix-blend-mode from other struct.
pub fn reset_mix_blend_mode(&mut self, other: &Self)
[src]
Reset mix-blend-mode from the initial struct.
pub fn clone_mix_blend_mode(&self) -> T
[src]
Get the computed value for mix-blend-mode.
Trait Implementations
impl Clone for Effects
[src]
fn clone(&self) -> Effects
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Effects
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl MallocSizeOf for Effects
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more