Trait iced::widget::image::viewer::Renderer [−]
This is supported on crate feature
image
only.The renderer of an Viewer
.
Your renderer will need to implement this trait before being
able to use a Viewer
in your user interface.
Required methods
pub fn draw(
&mut self,
state: &State,
bounds: Rectangle<f32>,
image_size: Size<f32>,
translation: Vector<f32>,
handle: Handle,
is_mouse_over: bool
) -> Self::Output
&mut self,
state: &State,
bounds: Rectangle<f32>,
image_size: Size<f32>,
translation: Vector<f32>,
handle: Handle,
is_mouse_over: bool
) -> Self::Output
Implementations on Foreign Types
impl<B> Renderer for Renderer<B> where
B: Backend + Image,
B: Backend + Image,
pub fn draw(
&mut self,
state: &State,
bounds: Rectangle<f32>,
image_size: Size<f32>,
translation: Vector<f32>,
handle: Handle,
is_mouse_over: bool
) -> <Renderer<B> as Renderer>::Output
&mut self,
state: &State,
bounds: Rectangle<f32>,
image_size: Size<f32>,
translation: Vector<f32>,
handle: Handle,
is_mouse_over: bool
) -> <Renderer<B> as Renderer>::Output