pub struct DiffuseLighting {
    pub(crate) input: Input,
    pub(crate) surface_scale: f32,
    pub(crate) diffuse_constant: f32,
    pub(crate) lighting_color: Color,
    pub(crate) light_source: LightSource,
}Expand description
A diffuse lighting filter primitive.
feDiffuseLighting element in the SVG.
Fields§
§input: Input§surface_scale: f32§diffuse_constant: f32§lighting_color: Color§light_source: LightSourceImplementations§
Source§impl DiffuseLighting
 
impl DiffuseLighting
Sourcepub fn surface_scale(&self) -> f32
 
pub fn surface_scale(&self) -> f32
A surface scale.
surfaceScale in the SVG.
Sourcepub fn diffuse_constant(&self) -> f32
 
pub fn diffuse_constant(&self) -> f32
A diffuse constant.
diffuseConstant in the SVG.
Sourcepub fn lighting_color(&self) -> Color
 
pub fn lighting_color(&self) -> Color
A lighting color.
lighting-color in the SVG.
Sourcepub fn light_source(&self) -> LightSource
 
pub fn light_source(&self) -> LightSource
A light source.
Trait Implementations§
Source§impl Clone for DiffuseLighting
 
impl Clone for DiffuseLighting
Source§fn clone(&self) -> DiffuseLighting
 
fn clone(&self) -> DiffuseLighting
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DiffuseLighting
impl RefUnwindSafe for DiffuseLighting
impl Send for DiffuseLighting
impl Sync for DiffuseLighting
impl Unpin for DiffuseLighting
impl UnwindSafe for DiffuseLighting
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