pub struct VideoViewer { /* private fields */ }Expand description
Renders the current frame of a VideoPlayer.
Implementations§
Source§impl VideoViewer
impl VideoViewer
pub fn new(player: VideoPlayer) -> Self
Trait Implementations§
Source§impl AccessibilityExt for VideoViewer
impl AccessibilityExt for VideoViewer
fn get_accessibility_data(&mut self) -> &mut AccessibilityData
fn accessibility(self, accessibility: AccessibilityData) -> Self
fn a11y_id(self, a11y_id: impl Into<Option<NodeId>>) -> Self
fn a11y_focusable(self, a11y_focusable: impl Into<Focusable>) -> Self
fn a11y_auto_focus(self, a11y_auto_focus: impl Into<bool>) -> Self
fn a11y_member_of(self, a11y_member_of: impl Into<NodeId>) -> Self
fn a11y_role(self, a11y_role: impl Into<Role>) -> Self
fn a11y_alt(self, value: impl Into<Box<str>>) -> Self
fn a11y_builder(self, with: impl FnOnce(&mut Node)) -> Self
Source§impl Component for VideoViewer
impl Component for VideoViewer
fn render(&self) -> impl IntoElement
fn render_key(&self) -> DiffKey
Source§impl ContainerSizeExt for VideoViewer
impl ContainerSizeExt for VideoViewer
Source§impl ImageExt for VideoViewer
impl ImageExt for VideoViewer
fn get_image_data(&mut self) -> &mut ImageData
fn image_data(self, image_data: ImageData) -> Self
fn sampling_mode(self, sampling_mode: SamplingMode) -> Self
fn aspect_ratio(self, aspect_ratio: AspectRatio) -> Self
fn image_cover(self, image_cover: ImageCover) -> Self
Source§impl KeyExt for VideoViewer
impl KeyExt for VideoViewer
Source§impl LayoutExt for VideoViewer
impl LayoutExt for VideoViewer
fn get_layout(&mut self) -> &mut LayoutData
fn layout(self, layout: LayoutData) -> Self
Source§impl PartialEq for VideoViewer
impl PartialEq for VideoViewer
impl StructuralPartialEq for VideoViewer
Auto Trait Implementations§
impl Freeze for VideoViewer
impl !RefUnwindSafe for VideoViewer
impl !Send for VideoViewer
impl !Sync for VideoViewer
impl !Unpin for VideoViewer
impl UnsafeUnpin for VideoViewer
impl !UnwindSafe for VideoViewer
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
Source§impl<T> ComponentKey for Twhere
T: Component,
impl<T> ComponentKey for Twhere
T: Component,
fn default_key(&self) -> DiffKey
Source§impl<T> ComponentProps for T
impl<T> ComponentProps for T
fn changed(&self, other: &(dyn ComponentProps + 'static)) -> bool
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more