Rename window::Backend to Compositor

This commit is contained in:
Héctor Ramón Jiménez 2020-05-19 20:01:55 +02:00
parent a0ac09122a
commit 4aed0fa4b6
9 changed files with 39 additions and 31 deletions

View file

@ -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;

View file

@ -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;