Trait iced_graphics::geometry::Renderer
source · pub trait Renderer: Renderer {
type Geometry: Cached;
type Frame: Backend<Geometry = Self::Geometry>;
// Required methods
fn new_frame(&self, size: Size) -> Self::Frame;
fn draw_geometry(&mut self, geometry: Self::Geometry);
}
Expand description
A renderer capable of drawing some Self::Geometry
.
Required Associated Types§
Required Methods§
sourcefn new_frame(&self, size: Size) -> Self::Frame
fn new_frame(&self, size: Size) -> Self::Frame
Creates a new Self::Frame
.
sourcefn draw_geometry(&mut self, geometry: Self::Geometry)
fn draw_geometry(&mut self, geometry: Self::Geometry)
Draws the given Self::Geometry
.
Object Safety§
This trait is not object safe.