pub type Compositor = Compositor<Compositor, Compositor>;
Expand description
The default graphics compositor for iced
.
Aliased Type§
enum Compositor {
Primary(Compositor),
Secondary(Compositor),
}
Variants§
Primary(Compositor)
The primary compositing option.
Secondary(Compositor)
The secondary (or fallback) compositing option.
Trait Implementations
Source§impl<A, B> Compositor for Compositor<A, B>where
A: Compositor,
B: Compositor,
impl<A, B> Compositor for Compositor<A, B>where
A: Compositor,
B: Compositor,
Source§type Renderer = Renderer<<A as Compositor>::Renderer, <B as Compositor>::Renderer>
type Renderer = Renderer<<A as Compositor>::Renderer, <B as Compositor>::Renderer>
The iced renderer of the backend.
Source§type Surface = Surface<<A as Compositor>::Surface, <B as Compositor>::Surface>
type Surface = Surface<<A as Compositor>::Surface, <B as Compositor>::Surface>
The surface of the backend.
Source§async fn with_backend<W: Window + Clone>(
settings: Settings,
compatible_window: W,
backend: Option<&str>,
) -> Result<Self, Error>
async fn with_backend<W: Window + Clone>( settings: Settings, compatible_window: W, backend: Option<&str>, ) -> Result<Self, Error>
Creates a new [
Compositor
] with a backend preference. Read moreSource§fn create_renderer(&self) -> Self::Renderer
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,
) -> Self::Surface
fn create_surface<W: Window + Clone>( &mut self, window: W, width: u32, height: u32, ) -> Self::Surface
Crates a new
Surface
for the given window.Source§fn configure_surface(
&mut self,
surface: &mut Self::Surface,
width: u32,
height: u32,
)
fn configure_surface( &mut self, surface: &mut Self::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
].