summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Bingus <shankern@protonmail.com>2023-07-12 19:21:05 -0700
committerLibravatar Bingus <shankern@protonmail.com>2023-07-21 13:53:38 -0700
commitd53ccc857da4d4cda769904342aeb5a82a64f146 (patch)
tree7de16b72e0e054d10380586ba5b79a7181478aa7 /graphics
parent633f405f3f78bc7f82d2b2061491b0e011137451 (diff)
downloadiced-d53ccc857da4d4cda769904342aeb5a82a64f146.tar.gz
iced-d53ccc857da4d4cda769904342aeb5a82a64f146.tar.bz2
iced-d53ccc857da4d4cda769904342aeb5a82a64f146.zip
refactored window storage;
new helper window events (Destroyed, Created); clippy + fmt;
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Cargo.toml1
-rw-r--r--graphics/src/compositor.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/graphics/Cargo.toml b/graphics/Cargo.toml
index 7a9e6aee..15d26346 100644
--- a/graphics/Cargo.toml
+++ b/graphics/Cargo.toml
@@ -12,7 +12,6 @@ categories = ["gui"]
[features]
geometry = ["lyon_path"]
-opengl = []
image = ["dep:image", "kamadak-exif"]
web-colors = []
diff --git a/graphics/src/compositor.rs b/graphics/src/compositor.rs
index f7b86045..32111008 100644
--- a/graphics/src/compositor.rs
+++ b/graphics/src/compositor.rs
@@ -24,6 +24,9 @@ pub trait Compositor: Sized {
compatible_window: Option<&W>,
) -> Result<(Self, Self::Renderer), Error>;
+ /// Creates a [`Renderer`] for the [`Compositor`].
+ fn renderer(&self) -> Self::Renderer;
+
/// Crates a new [`Surface`] for the given window.
///
/// [`Surface`]: Self::Surface