diff --git a/src/animation.rs b/src/animation.rs index f3594b2..536b92f 100644 --- a/src/animation.rs +++ b/src/animation.rs @@ -428,9 +428,6 @@ where } } -/// A [`Animate`] implementor that has been boxed as a trait object. -pub struct BoxedAnimation(Box); - /// An animation that can be spawned. pub trait Spawn { /// Spawns the animation, returning a handle that tracks the animation. diff --git a/src/window.rs b/src/window.rs index 7734c65..02c04f5 100644 --- a/src/window.rs +++ b/src/window.rs @@ -245,6 +245,9 @@ pub trait PlatformWindow { fn set_min_inner_size(&self, min_size: Option>); /// Sets the window's maximum inner size. fn set_max_inner_size(&self, max_size: Option>); + + /// Returns a handle to the underlying winit window, if available. + fn winit(&self) -> Option<&winit::window::Window>; } /// A currently running Cushy window. @@ -436,6 +439,10 @@ where fn set_ime_location(&self, location: Rect) { self.window.set_ime_location(location); } + + fn winit(&self) -> Option<&winit::window::Window> { + self.window.winit() + } } /// The attributes of a Cushy window.