FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    capture_preview_stage_png

    function · ferroui-designer · v0.5.0

    fn capture_preview_stage_png(control: &ferroui_base::Ref<ferroui_controls::Control>, options: PreviewStageExportOptions) -> Result<PreviewStageImage, String>
    

    Capture a native stage at its existing arranged size, excluding all ancestors such as the board's Viewbox, card title and commands. Pass the board's stage control, not its card. No application input, layout, source or clock is changed.

    An embedding host must first check that the accepted stage still represents the current source and requested configuration. DesignerWorkspace performs those checks in its screenshot API. This helper is also useful to custom hosts which own their stage lifecycle directly.

    View source

    Availability

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