FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BaseRenderToStreamHandler

    trait · ferroui-diagnostics · v0.5.0

    trait BaseRenderToStreamHandler
    

    Base class for render Screenshto to stream

    An abstract class upstream: an implementation supplies the stream (get_stream) and is an IScreenshotHandler whose take renders the control to that stream, as the non-virtual Take of the original does.

    View source

    Members

    get_stream

    fn get_stream(self: &Self, control: &Ref<Control>) -> LocalBoxFuture<std::io::Result<Option<Box<dyn Write>>>>
    

    Get stream to write a screenshot to.

    Resolves to the stream to render the control to, or to None when there is none (the screenshot is then not taken).

    Source

    Trait implementations

    Availability

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