FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    QrPreview

    struct · ferroui-media-camera-controls · v0.5.0

    struct QrPreview
    

    A camera preview that outlines QR detections supplied by an analysis engine. Creating this control does not start capture or recognition.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<QrPreview>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    set_detections

    fn set_detections(self: &Self, candidates: &[QrCandidate])
    

    Replaces the outlines with a single frame's detections. Pass an empty slice when no codes are found. An outline expires if analysis stops refreshing it. The preview retains only corner and frame metadata.

    Source

    Trait implementations

    Availability

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