pub struct ImageView { /* private fields */ }Expand description
ImageView are specialized views in visualizing images and GIF animations.
§Remark
This type is managed by nappgui itself. Rust does not have its ownership. When the window object is dropped, all components assciated with it will be automatically released.
Implementations§
Trait Implementations§
Source§impl ControlLayoutTrait for ImageViewwhere
ImageView: ImageViewTrait,
impl ControlLayoutTrait for ImageViewwhere
ImageView: ImageViewTrait,
Source§fn insert_in_layout<T>(&self, layout: T, col: u32, row: u32)where
T: LayoutTrait,
fn insert_in_layout<T>(&self, layout: T, col: u32, row: u32)where
T: LayoutTrait,
Insert the control to the layout
impl Copy for ImageView
Source§impl ImageViewTrait for ImageView
impl ImageViewTrait for ImageView
Source§fn image<T>(&self, image: &T)where
T: ImageTrait,
fn image<T>(&self, image: &T)where
T: ImageTrait,
Set the image to be displayed in the control.
Source§fn on_click<F>(&self, handler: F)where
F: FnMut() + 'static,
fn on_click<F>(&self, handler: F)where
F: FnMut() + 'static,
Set a handle for the event click on the image.
Source§fn on_over_draw<F>(&self, handler: F)where
F: FnMut() + 'static,
fn on_over_draw<F>(&self, handler: F)where
F: FnMut() + 'static,
Allows you to draw an overlay on the image when the mouse is over it.
Auto Trait Implementations§
impl !Send for ImageView
impl !Sync for ImageView
impl Freeze for ImageView
impl RefUnwindSafe for ImageView
impl Unpin for ImageView
impl UnsafeUnpin for ImageView
impl UnwindSafe 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