From e0e4ee73feead3f05730625c7e1917b63f0b384e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 21 May 2020 00:37:47 +0200 Subject: Implement `iced_glutin` :tada: --- winit/src/proxy.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'winit/src/proxy.rs') diff --git a/winit/src/proxy.rs b/winit/src/proxy.rs index cff6ca72..ee96614a 100644 --- a/winit/src/proxy.rs +++ b/winit/src/proxy.rs @@ -5,6 +5,7 @@ use iced_native::futures::{ }; use std::pin::Pin; +#[derive(Debug)] pub struct Proxy { raw: winit::event_loop::EventLoopProxy, } -- cgit From ef28347f1c816d8ad9e772303467de489efb802b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 28 May 2020 02:49:32 +0200 Subject: Write documentation for new `iced_winit` API --- winit/src/proxy.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'winit/src/proxy.rs') diff --git a/winit/src/proxy.rs b/winit/src/proxy.rs index ee96614a..532f8c56 100644 --- a/winit/src/proxy.rs +++ b/winit/src/proxy.rs @@ -5,6 +5,7 @@ use iced_native::futures::{ }; use std::pin::Pin; +/// An event loop proxy that implements `Sink`. #[derive(Debug)] pub struct Proxy { raw: winit::event_loop::EventLoopProxy, @@ -19,6 +20,9 @@ impl Clone for Proxy { } impl Proxy { + /// Creates a new [`Proxy`] from an `EventLoopProxy`. + /// + /// [`Proxy`]: struct.Proxy.html pub fn new(raw: winit::event_loop::EventLoopProxy) -> Self { Self { raw } } -- cgit