FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    affects_render_source

    function · ferroui-base · v0.5.0

    fn affects_render_source(value: &dyn Any) -> Option<&dyn IAffectsRender>
    

    The media object a property value holds whose changes affect rendering, when it holds one.

    value is the untyped value of a property as carried by a property change notification; the property types that can hold an IAffectsRender are recognised: optional brushes, pens, transforms, effects and images (as interface handles) and optional geometries and transforms (as class handles). Returns None when the value is of another type, is absent or is immutable.

    This is the counterpart of testing a property value for the interface. A caller that builds a handler for the object asks here first, so that a value with nothing to subscribe to (an immutable brush, no brush) costs it no handler.

    View source

    Availability

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