pub struct VideoFrameView {
pub key: Option<KeyRef>,
pub reader: Arc<dyn VideoFrameReader>,
}Expand description
Draws a video’s newest frame where it is placed.
Fields§
§key: Option<KeyRef>See Widget::key.
reader: Arc<dyn VideoFrameReader>The frames drawn: a reader the app made and gave a player or a camera session.
Implementations§
Source§impl VideoFrameView
impl VideoFrameView
pub fn new(reader: Arc<dyn VideoFrameReader>) -> VideoFrameView
pub fn key(self, key: KeyRef) -> VideoFrameView
Trait Implementations§
Source§impl Clone for VideoFrameView
impl Clone for VideoFrameView
Source§impl Debug for VideoFrameView
impl Debug for VideoFrameView
impl LeafRenderObjectWidget for VideoFrameView
Source§impl RenderObjectWidget for VideoFrameView
impl RenderObjectWidget for VideoFrameView
Source§type RenderObject = RenderVideoFrameView
type RenderObject = RenderVideoFrameView
The render object this widget creates; Dart’s
covariant RenderObject parameter type.Source§fn create_render_object(
&self,
app: &mut App,
_context: BuildContext,
) -> AnyRenderObject
fn create_render_object( &self, app: &mut App, _context: BuildContext, ) -> AnyRenderObject
Creates an instance of the
RenderObject class that this widget represents, using the
configuration described by this widget. Read moreSource§fn update_render_object(
&self,
app: &mut App,
_context: BuildContext,
render_object: RenderHandle<RenderVideoFrameView>,
)
fn update_render_object( &self, app: &mut App, _context: BuildContext, render_object: RenderHandle<RenderVideoFrameView>, )
Copies the configuration described by this widget to the given render object, which
will be of the same type as returned by this object’s
create_render_object. Read moreSource§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Dart’s
toStringShort, for a widget that names itself apart from its type, as
SizedBox.expand does; see Widget::to_string_short.Source§fn debug_visit_onstage_children(
&self,
app: &App,
children: &[AnyElement],
visitor: &mut dyn FnMut(AnyElement),
)
fn debug_visit_onstage_children( &self, app: &App, children: &[AnyElement], visitor: &mut dyn FnMut(AnyElement), )
Dart’s
debugVisitOnstageChildren of the element this widget makes, for a widget whose
Dart element subclass overrides it only to hide children (_OffstageElement,
_IndexedStackElement): calls visitor for each of children, in order, that is
onstage. Waft’s generic single- and multi-child elements stand in for those subclasses
and ask their widget here; an element of a widget’s own overrides
Element::debug_visit_onstage_children instead.Source§fn did_unmount_render_object(
&self,
app: &mut App,
render_object: RenderHandle<Self::RenderObject>,
)
fn did_unmount_render_object( &self, app: &mut App, render_object: RenderHandle<Self::RenderObject>, )
A render object previously associated with this widget has been removed from the tree.
The given
RenderObject will be of the same type as returned by this object’s
create_render_object.Auto Trait Implementations§
impl !RefUnwindSafe for VideoFrameView
impl !Send for VideoFrameView
impl !Sync for VideoFrameView
impl !UnwindSafe for VideoFrameView
impl Forget for VideoFrameView
impl Freeze for VideoFrameViewwhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
*const ArcInner<dyn VideoFrameReader> is !null: Freeze,
PhantomData<ArcInner<dyn VideoFrameReader>>: Freeze,
impl Move for VideoFrameView
impl Unpin for VideoFrameView
impl UnsafeUnpin for VideoFrameViewwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const ArcInner<dyn VideoFrameReader> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn VideoFrameReader>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<W> IntoWidget<LeafRenderObjectKind> for Wwhere
W: LeafRenderObjectWidget,
impl<W> IntoWidget<LeafRenderObjectKind> for Wwhere
W: LeafRenderObjectWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
The widget as a tree node, made where this is called: its
creation_location.