summaryrefslogblamecommitdiffstats
path: root/winit/src/lib.rs
blob: ed2910d64a7afa93d20b6af4e4947409bb47f4ed (plain) (tree)
1
2
3
4
5
6
7
8

                                                    
                                                                                                                                                           
   
                                                                               

                                                   
                                                                            




                                                                               
                                                                       
                                                      
                                     
       
                                                                                                                           
  
                                           
                                  


                                
              
 
                  
                   
                 
 


                           


                          
          
          
 
                             
                     
                     
                           


                           
//! A windowing shell for Iced, on top of [`winit`].
//!
//! ![The native path of the Iced ecosystem](https://github.com/iced-rs/iced/blob/0525d76ff94e828b7b21634fa94a747022001c83/docs/graphs/native.png?raw=true)
//!
//! `iced_winit` offers some convenient abstractions on top of [`iced_runtime`]
//! to quickstart development when using [`winit`].
//!
//! It exposes a renderer-agnostic [`Program`] trait that can be implemented
//! and then run with a simple call. The use of this trait is optional.
//!
//! Additionally, a [`conversion`] module is available for users that decide to
//! implement a custom event loop.
//!
//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.13/runtime
//! [`winit`]: https://github.com/rust-windowing/winit
//! [`conversion`]: crate::conversion
#![doc(
    html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
pub use iced_graphics as graphics;
pub use iced_runtime as runtime;
pub use iced_runtime::core;
pub use iced_runtime::futures;
pub use winit;

pub mod clipboard;
pub mod conversion;
pub mod settings;

#[cfg(feature = "program")]
pub mod program;

#[cfg(feature = "system")]
pub mod system;

mod error;
mod proxy;

pub use clipboard::Clipboard;
pub use error::Error;
pub use proxy::Proxy;
pub use settings::Settings;

#[cfg(feature = "program")]
pub use program::Program;