refactored window storage;
new helper window events (Destroyed, Created); clippy + fmt;
This commit is contained in:
parent
633f405f3f
commit
d53ccc857d
56 changed files with 1508 additions and 1819 deletions
|
|
@ -12,7 +12,6 @@ categories = ["gui"]
|
|||
|
||||
[features]
|
||||
geometry = ["lyon_path"]
|
||||
opengl = []
|
||||
image = ["dep:image", "kamadak-exif"]
|
||||
web-colors = []
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue