iced_winit/
lib.rs

1//! A windowing shell for Iced, on top of [`winit`].
2//!
3//! ![The native path of the Iced ecosystem](https://github.com/iced-rs/iced/blob/0525d76ff94e828b7b21634fa94a747022001c83/docs/graphs/native.png?raw=true)
4//!
5//! `iced_winit` offers some convenient abstractions on top of [`iced_runtime`]
6//! to quickstart development when using [`winit`].
7//!
8//! It exposes a renderer-agnostic [`Program`] trait that can be implemented
9//! and then run with a simple call. The use of this trait is optional.
10//!
11//! Additionally, a [`conversion`] module is available for users that decide to
12//! implement a custom event loop.
13//!
14//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.13/runtime
15//! [`winit`]: https://github.com/rust-windowing/winit
16//! [`conversion`]: crate::conversion
17#![doc(
18    html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
19)]
20#![cfg_attr(docsrs, feature(doc_auto_cfg))]
21pub use iced_graphics as graphics;
22pub use iced_runtime as runtime;
23pub use iced_runtime::core;
24pub use iced_runtime::futures;
25pub use winit;
26
27pub mod clipboard;
28pub mod conversion;
29pub mod settings;
30
31#[cfg(feature = "program")]
32pub mod program;
33
34#[cfg(feature = "system")]
35pub mod system;
36
37mod error;
38mod proxy;
39
40pub use clipboard::Clipboard;
41pub use error::Error;
42pub use proxy::Proxy;
43pub use settings::Settings;
44
45#[cfg(feature = "program")]
46pub use program::Program;