Skip to main content

ImmutableDropShadowDirectionEffect

Struct ImmutableDropShadowDirectionEffect 

Source
pub struct ImmutableDropShadowDirectionEffect { /* private fields */ }
Expand description

An immutable drop shadow effect described by a direction and a depth.

Implementations§

Source§

impl ImmutableDropShadowDirectionEffect

Source

pub fn new( direction: f64, shadow_depth: f64, blur_radius: f64, color: Color, opacity: f64, ) -> Self

Source

pub fn offset_x(&self) -> f64

The horizontal offset of the shadow.

Source

pub fn offset_y(&self) -> f64

The vertical offset of the shadow.

Source

pub fn direction(&self) -> f64

The direction of the shadow, in degrees.

Source

pub fn shadow_depth(&self) -> f64

The distance of the shadow from the content.

Source

pub fn blur_radius(&self) -> f64

The blur radius of the shadow.

Source

pub fn color(&self) -> Color

The color of the shadow.

Source

pub fn opacity(&self) -> f64

The opacity of the shadow.

Trait Implementations§

Source§

impl Clone for ImmutableDropShadowDirectionEffect

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for ImmutableDropShadowDirectionEffect

Source§

impl Debug for ImmutableDropShadowDirectionEffect

Source§

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

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

impl IDirectionDropShadowEffect for ImmutableDropShadowDirectionEffect

Source§

fn direction(&self) -> f64

The direction of the shadow, in degrees.
Source§

fn shadow_depth(&self) -> f64

The distance of the shadow from the content.
Source§

impl IDropShadowEffect for ImmutableDropShadowDirectionEffect

Source§

fn offset_x(&self) -> f64

The horizontal offset of the shadow.
Source§

fn offset_y(&self) -> f64

The vertical offset of the shadow.
Source§

fn blur_radius(&self) -> f64

The blur radius of the shadow.
Source§

fn color(&self) -> Color

The color of the shadow.
Source§

fn opacity(&self) -> f64

The opacity of the shadow.
Source§

impl IEffect for ImmutableDropShadowDirectionEffect

Source§

fn as_any(&self) -> &dyn Any

The implementing value, for downcasts to immutable effect types. For mutable effects use as_object.
Source§

fn as_drop_shadow_effect(&self) -> Option<&dyn IDropShadowEffect>

The effect viewed as IDropShadowEffect, when it is one.
Source§

fn as_direction_drop_shadow_effect( &self, ) -> Option<&dyn IDirectionDropShadowEffect>

The effect viewed as IDirectionDropShadowEffect, when it is one.
Source§

fn as_immutable_effect(&self) -> Option<&dyn IImmutableEffect>

The effect viewed as IImmutableEffect, when it is one.
Source§

fn into_immutable_effect(self: Rc<Self>) -> Option<Arc<dyn IImmutableEffect>>

The effect as an IImmutableEffect handle, when it is immutable: a copy in a handle that can be shared with the render thread (immutable effects are values and compare structurally).
Source§

fn as_object(&self) -> Option<&FerroObject>

The object behind the effect when it is a mutable Effect.
Source§

fn as_blur_effect(&self) -> Option<&dyn IBlurEffect>

The effect viewed as IBlurEffect, when it is one.
Source§

fn as_mutable_effect(&self) -> Option<&dyn IMutableEffect>

The effect viewed as IMutableEffect, when it is one.
Source§

impl IImmutableEffect for ImmutableDropShadowDirectionEffect

Source§

fn equals(&self, other: Option<&dyn IEffect>) -> bool

Whether the effect has the same parameters as other.

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> ClassDefaults for T
where T: ?Sized,

Source§

fn static_constructor()

The static constructor of a type: work done once per thread, after the properties of the type are registered and before its first instance exists (class handlers, affects_render, metadata overrides). Read more
Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.