FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DropShadowEffect

    struct · ferroui-base · v0.5.0

    struct DropShadowEffect
    

    An effect that draws a shadow behind its content, positioned by an offset.

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

    Returns a strong reference to this object.

    Source

    offset_x_property

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

    Source

    offset_y_property

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

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    offset_x

    fn offset_x(self: &Self) -> f64
    

    The horizontal offset of the shadow.

    Source

    set_offset_x

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

    Source

    offset_y

    fn offset_y(self: &Self) -> f64
    

    The vertical offset of the shadow.

    Source

    set_offset_y

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

    Source

    to_immutable

    fn to_immutable(self: &Self) -> std::sync::Arc<dyn IImmutableEffect>
    

    Creates an immutable clone of the effect.

    Source

    Trait implementations

    Availability

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