pub enum Compositor {
    TinySkia(Compositor),
}

Variants§

§

TinySkia(Compositor)

Trait Implementations§

source§

impl Compositor for Compositor

§

type Settings = Settings

The settings of the backend.
§

type Renderer = Renderer

The iced renderer of the backend.
§

type Surface = Surface

The surface of the backend.
source§

fn new<W: Window + Clone>( settings: Self::Settings, compatible_window: W ) -> Result<Self, Error>

Creates a new Compositor.
source§

fn create_renderer(&self) -> Self::Renderer

Creates a Self::Renderer for the Compositor.
source§

fn create_surface<W: Window + Clone>( &mut self, window: W, width: u32, height: u32 ) -> Surface

Crates a new Surface for the given window.
source§

fn configure_surface(&mut self, surface: &mut Surface, width: u32, height: u32)

Configures a new Surface with the given dimensions.
source§

fn fetch_information(&self) -> Information

Returns Information used by this Compositor.
source§

fn present<T: AsRef<str>>( &mut self, renderer: &mut Self::Renderer, surface: &mut Self::Surface, viewport: &Viewport, background_color: Color, overlay: &[T] ) -> Result<(), SurfaceError>

Presents the Renderer primitives to the next frame of the given Surface.
source§

fn screenshot<T: AsRef<str>>( &mut self, renderer: &mut Self::Renderer, surface: &mut Self::Surface, 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.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.