Struct usvg_tree::filter::SpotLight

source ·
pub struct SpotLight {
    pub x: f32,
    pub y: f32,
    pub z: f32,
    pub points_at_x: f32,
    pub points_at_y: f32,
    pub points_at_z: f32,
    pub specular_exponent: PositiveF32,
    pub limiting_cone_angle: Option<f32>,
}
Expand description

A spot light source.

feSpotLight element in the SVG.

Fields§

§x: f32

X location for the light source.

x in the SVG.

§y: f32

Y location for the light source.

y in the SVG.

§z: f32

Z location for the light source.

z in the SVG.

§points_at_x: f32

X point at which the light source is pointing.

pointsAtX in the SVG.

§points_at_y: f32

Y point at which the light source is pointing.

pointsAtY in the SVG.

§points_at_z: f32

Z point at which the light source is pointing.

pointsAtZ in the SVG.

§specular_exponent: PositiveF32

Exponent value controlling the focus for the light source.

specularExponent in the SVG.

§limiting_cone_angle: Option<f32>

A limiting cone which restricts the region where the light is projected.

limitingConeAngle in the SVG.

Trait Implementations§

source§

impl Clone for SpotLight

source§

fn clone(&self) -> SpotLight

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SpotLight

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for SpotLight

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.