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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<QrPreview>
Returns a strong reference to this object.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherControlImplExtPanelImplExtDerefUpcast<T>Upcast<QrPreview>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplLayoutableImplInteractiveImplInputElementImplControlImplPanelImplFerroObjectImplVisualImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.