Rename window::Backend to Compositor
This commit is contained in:
parent
a0ac09122a
commit
4aed0fa4b6
9 changed files with 39 additions and 31 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue