DropShadowDirectionEffect
struct · ferroui-base · v0.5.0
struct DropShadowDirectionEffect
An effect that draws a shadow behind its content, positioned by a direction and a depth.
Members
TYPEto_refshadow_depth_propertydirection_propertyconstructnewshadow_depthset_shadow_depthdirectionset_directionoffset_xoffset_yto_immutable
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DropShadowDirectionEffect>
Returns a strong reference to this object.
shadow_depth_property
fn shadow_depth_property() -> &'static StyledProperty<f64>
direction_property
fn direction_property() -> &'static StyledProperty<f64>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
shadow_depth
fn shadow_depth(self: &Self) -> f64
The distance of the shadow from the content.
set_shadow_depth
fn set_shadow_depth(self: &Self, value: f64)
direction
fn direction(self: &Self) -> f64
The direction of the shadow, in degrees.
set_direction
fn set_direction(self: &Self, value: f64)
offset_x
fn offset_x(self: &Self) -> f64
The horizontal offset of the shadow.
offset_y
fn offset_y(self: &Self) -> f64
The vertical offset of the shadow.
to_immutable
fn to_immutable(self: &Self) -> std::sync::Arc<dyn IImmutableEffect>
Creates an immutable clone of the effect.
As in the reference implementation, the computed offsets are handed to the immutable effect as its direction and depth.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<DropShadowDirectionEffect>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.