FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DissolveTransitionEffect

    struct · ferroui-base · v0.5.0

    struct DissolveTransitionEffect
    

    Dissolves from one page to another (Effector's compiz-style dissolve): a frontier spreads from the point (center-x, center-y) of the area (fractions of its width and height, clamped to 0..1) as progress goes from 0 (from-page) to 1 (to-page), and crosses each pixel when it reaches the luminance of pattern there, with a soft edge and a glow of glow-color along it. The pages and the pattern are stretched over the area; without a pattern the dissolve is a round wipe from the point.

    dissolve-transition(progress=0.5, center-x=0.5, center-y=0.5, glow-color=#FF942E), the images set from code. An overlay shader effect with three children, drawn source over the content; a progress of 0 without images (the neutral value) leaves the content unchanged.

    View source

    Members

    from_page

    from_page: super::super::EffectImage
    

    The page the transition leaves.

    Source

    to_page

    to_page: super::super::EffectImage
    

    The page the transition comes to.

    Source

    pattern

    pattern: super::super::EffectImage
    

    The pattern of the dissolve: the frontier crosses a pixel when it reaches the luminance of the pattern there.

    Source

    progress

    progress: f64
    

    How far the transition is, 0 to 1 (default 0.5).

    Source

    center_x

    center_x: f64
    

    The horizontal position of the point the frontier spreads from, 0 (left) to 1 (right) (default 0.5).

    Source

    center_y

    center_y: f64
    

    The vertical position of that point, 0 (top) to 1 (bottom) (default 0.5).

    Source

    glow_color

    glow_color: crate::media::Color
    

    The colour of the glow along the frontier (default #FF942E, Effector's orange).

    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.