diff options
author | 2020-05-19 20:01:55 +0200 | |
---|---|---|
committer | 2020-05-19 20:01:55 +0200 | |
commit | 4aed0fa4b6d63b739b5557ef16f6077988cd2758 (patch) | |
tree | 2b773d818e745ee33015f904b8a748c50d7f2cfc /native | |
parent | a0ac09122a68d9be7d11e5cc765f52cb526ae913 (diff) | |
download | iced-4aed0fa4b6d63b739b5557ef16f6077988cd2758.tar.gz iced-4aed0fa4b6d63b739b5557ef16f6077988cd2758.tar.bz2 iced-4aed0fa4b6d63b739b5557ef16f6077988cd2758.zip |
Rename `window::Backend` to `Compositor`
Diffstat (limited to 'native')
-rw-r--r-- | native/src/window.rs | 4 | ||||
-rw-r--r-- | native/src/window/compositor.rs (renamed from native/src/window/backend.rs) | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/native/src/window.rs b/native/src/window.rs index 4dcae62f..84269fbf 100644 --- a/native/src/window.rs +++ b/native/src/window.rs @@ -1,6 +1,6 @@ //! Build window-based GUI applications. -mod backend; +mod compositor; mod event; -pub use backend::Backend; +pub use compositor::Compositor; pub use event::Event; diff --git a/native/src/window/backend.rs b/native/src/window/compositor.rs index d8726fd4..ae010c89 100644 --- a/native/src/window/backend.rs +++ b/native/src/window/compositor.rs @@ -2,8 +2,8 @@ use crate::mouse; use raw_window_handle::HasRawWindowHandle; -/// A graphics backend that can render to windows. -pub trait Backend: Sized { +/// A graphics compositor that can draw to windows. +pub trait Compositor: Sized { /// The settings of the backend. type Settings: Default + Clone; |