pub struct ImageView<'a> {
pub id: u64,
pub path: &'a Path,
pub rect: Rect,
pub fit: Fit,
pub filters: ImageFilters,
pub playing: bool,
pub transition: ImageTransition,
pub leaving: Option<(&'a Path, f32)>,
}Expand description
An image, ready to draw.
Fields§
§id: u64Names the image, so a renderer can keep a GIF’s playback and the
platform repaint it with Window::repaint_image.
path: &'a PathThe file to show.
rect: RectWhere: a box of the image’s size, centered in the node.
fit: FitHow the picture fills the box.
filters: ImageFiltersWhat the picture is drawn through.
playing: boolWhether a GIF plays; paused, it stays on its frame.
transition: ImageTransitionHow a new source comes in. With one other than none, a source that can’t be loaded shows the last one that could.
leaving: Option<(&'a Path, f32)>While a transition runs: the file it leaves and how far along it is, eased, from 0 (all old) to 1 (all new); an easing that overshoots may stray past either end.
Auto Trait Implementations§
impl<'a> Forget for ImageView<'a>
impl<'a> Freeze for ImageView<'a>
impl<'a> Move for ImageView<'a>
impl<'a> RefUnwindSafe for ImageView<'a>
impl<'a> Send for ImageView<'a>
impl<'a> Sync for ImageView<'a>
impl<'a> Unpin for ImageView<'a>
impl<'a> UnsafeUnpin for ImageView<'a>
impl<'a> UnwindSafe for ImageView<'a>
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