FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<DropShadowDirectionEffect>
    

    Returns a strong reference to this object.

    Source

    shadow_depth_property

    fn shadow_depth_property() -> &'static StyledProperty<f64>
    

    Source

    direction_property

    fn direction_property() -> &'static StyledProperty<f64>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    shadow_depth

    fn shadow_depth(self: &Self) -> f64
    

    The distance of the shadow from the content.

    Source

    set_shadow_depth

    fn set_shadow_depth(self: &Self, value: f64)
    

    Source

    direction

    fn direction(self: &Self) -> f64
    

    The direction of the shadow, in degrees.

    Source

    set_direction

    fn set_direction(self: &Self, value: f64)
    

    Source

    offset_x

    fn offset_x(self: &Self) -> f64
    

    The horizontal offset of the shadow.

    Source

    offset_y

    fn offset_y(self: &Self) -> f64
    

    The vertical offset of the shadow.

    Source

    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.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.