FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GlowEffect

    struct · ferroui-base · v0.5.0

    struct GlowEffect
    

    A blurred halo of a colour around the content, under it (Effector's GlowEffect): the alpha of the content in the colour, its alpha times intensity (clamped to 0..1), blurred by blur-radius (the blur radius of the drop shadow effect), and the content over it.

    glow(color=Gold, blur-radius=12, intensity=0.9). The graph is a source-over composite of a shadow of the content (Glow.BlurAmount, Glow.ShadowColor) and the content, drawn as the drop shadow effect of the drawing contexts with no offset.

    View source

    Members

    color

    color: crate::media::Color
    

    The colour of the halo (default gold).

    Source

    blur_radius

    blur_radius: f64
    

    The blur radius of the halo, in device independent pixels (default 12).

    Source

    intensity

    intensity: f64
    

    The opacity of the halo, 0 to 1 (default 0.9).

    Source

    halo_color

    fn halo_color(self: &Self) -> Color
    

    The colour of the halo: the colour with its alpha times the intensity.

    Source

    drop_shadow

    fn drop_shadow(self: &Self) -> ImmutableDropShadowEffect
    

    The drop shadow effect the glow is drawn as.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Default
    • CustomEffect

    Availability

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