pub struct ImageView { /* private fields */ }Expand description
A declarative description of an image.
Construct with Image; set the fit mode with ImageView::fit
(defaults to ImageFit::Contain).
Implementations§
Trait Implementations§
Source§impl<State: 'static> View<State> for ImageView
impl<State: 'static> View<State> for ImageView
Source§type Element = ImageWidget
type Element = ImageWidget
The retained widget this view produces.
Source§fn build(&self, _ctx: &mut BuildCtx<'_>) -> ImageWidget
fn build(&self, _ctx: &mut BuildCtx<'_>) -> ImageWidget
Materialise a fresh widget for this view.
Source§fn rebuild(
&self,
prev: &Self,
element: &mut ImageWidget,
_ctx: &mut BuildCtx<'_>,
) -> ChangeFlags
fn rebuild( &self, prev: &Self, element: &mut ImageWidget, _ctx: &mut BuildCtx<'_>, ) -> ChangeFlags
Reconcile
prev (the previous view of the same type) against the live
element, mutating it in place and reporting what changed.Auto Trait Implementations§
impl !RefUnwindSafe for ImageView
impl !UnwindSafe for ImageView
impl Freeze for ImageView
impl Send for ImageView
impl Sync for ImageView
impl Unpin for ImageView
impl UnsafeUnpin for ImageView
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<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.