diff options
author | 2020-11-04 21:00:47 +0100 | |
---|---|---|
committer | 2020-11-05 04:09:40 +0100 | |
commit | ee38b04d8b08827c9ec9c970c7c0ab9fc3235c1d (patch) | |
tree | b639c231cf29989cadd41eed63884fa73821111b /winit/src/compositor.rs | |
parent | c153d11aa655119188358a206fb23a718f3d1beb (diff) | |
download | iced-ee38b04d8b08827c9ec9c970c7c0ab9fc3235c1d.tar.gz iced-ee38b04d8b08827c9ec9c970c7c0ab9fc3235c1d.tar.bz2 iced-ee38b04d8b08827c9ec9c970c7c0ab9fc3235c1d.zip |
Use static noop `Waker` in `application::run`
Diffstat (limited to '')
-rw-r--r-- | winit/src/compositor.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winit/src/compositor.rs b/winit/src/compositor.rs new file mode 100644 index 00000000..f6ce3075 --- /dev/null +++ b/winit/src/compositor.rs @@ -0,0 +1,7 @@ +use crate::Size; + +pub trait Compositor { + fn window(&self) -> &winit::window::Window; + + fn resize(&self, new_size: Size<u32>); +} |