Trait veloren_voxygen::ui::ice::widget::aspect_ratio_container::Renderer
source · pub trait Renderer: Renderer {
type ImageHandle: Hash;
// Required methods
fn dimensions(&self, handle: &Self::ImageHandle) -> (u32, u32);
fn draw<M>(
&mut self,
defaults: &Self::Defaults,
bounds: Rectangle,
cursor_position: Point,
viewport: &Rectangle,
content: &Element<'_, M, Self>,
content_layout: Layout<'_>,
) -> Self::Output;
}
Required Associated Types§
sourcetype ImageHandle: Hash
type ImageHandle: Hash
The handle used by this renderer for images.
Required Methods§
fn dimensions(&self, handle: &Self::ImageHandle) -> (u32, u32)
fn draw<M>( &mut self, defaults: &Self::Defaults, bounds: Rectangle, cursor_position: Point, viewport: &Rectangle, content: &Element<'_, M, Self>, content_layout: Layout<'_>, ) -> Self::Output
Object Safety§
This trait is not object safe.