summaryrefslogtreecommitdiffstats
path: root/graphics/src/compositor.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-22 19:35:19 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-22 19:35:19 +0100
commit441e9237cd1c9c9b61d9b144b5b4dafa236ace28 (patch)
tree97624f464014ee3490e346601a5414aac2c9ec34 /graphics/src/compositor.rs
parenta2c897792ccb8f91a8479c1eca9146c439e9173b (diff)
downloadiced-441e9237cd1c9c9b61d9b144b5b4dafa236ace28.tar.gz
iced-441e9237cd1c9c9b61d9b144b5b4dafa236ace28.tar.bz2
iced-441e9237cd1c9c9b61d9b144b5b4dafa236ace28.zip
Rename `compositor::Renderer` to `Default`
Diffstat (limited to '')
-rw-r--r--graphics/src/compositor.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/graphics/src/compositor.rs b/graphics/src/compositor.rs
index 4d548f30..8c67cd16 100644
--- a/graphics/src/compositor.rs
+++ b/graphics/src/compositor.rs
@@ -1,6 +1,5 @@
//! A compositor is responsible for initializing a renderer and managing window
//! surfaces.
-use crate::core;
use crate::core::Color;
use crate::futures::{MaybeSend, MaybeSync};
use crate::{Error, Settings, Viewport};
@@ -90,8 +89,8 @@ impl<T> Window for T where
{
}
-/// A renderer that supports composition.
-pub trait Renderer: core::Renderer {
+/// Defines the default compositor of a renderer.
+pub trait Default {
/// The compositor of the renderer.
type Compositor: Compositor<Renderer = Self>;
}
@@ -187,6 +186,6 @@ impl Compositor for () {
}
#[cfg(debug_assertions)]
-impl Renderer for () {
+impl Default for () {
type Compositor = ();
}