pub type Compositor = Compositor;
Expand description
The default graphics compositor for iced
.
Aliased Type§
struct Compositor { /* private fields */ }
Trait Implementations
source§impl Compositor for Compositor
impl Compositor for Compositor
source§async fn with_backend<W>(
settings: Settings,
compatible_window: W,
backend: Option<&str>,
) -> Result<Compositor, Error>where
W: Window,
async fn with_backend<W>(
settings: Settings,
compatible_window: W,
backend: Option<&str>,
) -> Result<Compositor, Error>where
W: Window,
Creates a new
Compositor
with a backend preference. Read moresource§fn create_renderer(&self) -> <Compositor as Compositor>::Renderer
fn create_renderer(&self) -> <Compositor as Compositor>::Renderer
Creates a
Self::Renderer
for the Compositor
.source§fn create_surface<W>(
&mut self,
window: W,
width: u32,
height: u32,
) -> <Compositor as Compositor>::Surface
fn create_surface<W>( &mut self, window: W, width: u32, height: u32, ) -> <Compositor as Compositor>::Surface
Crates a new
Surface
for the given window.source§fn configure_surface(
&mut self,
surface: &mut <Compositor as Compositor>::Surface,
width: u32,
height: u32,
)
fn configure_surface( &mut self, surface: &mut <Compositor as Compositor>::Surface, width: u32, height: u32, )
Configures a new
Surface
with the given dimensions.source§fn fetch_information(&self) -> Information
fn fetch_information(&self) -> Information
Returns
Information
used by this Compositor
.source§fn present<T>(
&mut self,
renderer: &mut <Compositor as Compositor>::Renderer,
surface: &mut <Compositor as Compositor>::Surface,
viewport: &Viewport,
background_color: Color,
overlay: &[T],
) -> Result<(), SurfaceError>
fn present<T>( &mut self, renderer: &mut <Compositor as Compositor>::Renderer, surface: &mut <Compositor as Compositor>::Surface, viewport: &Viewport, background_color: Color, overlay: &[T], ) -> Result<(), SurfaceError>
source§fn screenshot<T>(
&mut self,
renderer: &mut <Compositor as Compositor>::Renderer,
viewport: &Viewport,
background_color: Color,
overlay: &[T],
) -> Vec<u8> ⓘ
fn screenshot<T>( &mut self, renderer: &mut <Compositor as Compositor>::Renderer, viewport: &Viewport, background_color: Color, overlay: &[T], ) -> Vec<u8> ⓘ
Screenshots the current
Renderer
primitives to an offscreen texture, and returns the bytes of
the texture ordered as RGBA
in the sRGB
color space.