52 lines
1.5 KiB
Rust
52 lines
1.5 KiB
Rust
//! A windowing shell for Iced, on top of [`winit`].
|
|
//!
|
|
//! 
|
|
//!
|
|
//! `iced_winit` offers some convenient abstractions on top of [`iced_native`]
|
|
//! to quickstart development when using [`winit`].
|
|
//!
|
|
//! It exposes a renderer-agnostic [`Application`] 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_native`]: https://github.com/hecrj/iced/tree/master/native
|
|
//! [`winit`]: https://github.com/rust-windowing/winit
|
|
//! [`Application`]: trait.Application.html
|
|
//! [`conversion`]: conversion
|
|
#![deny(missing_docs)]
|
|
#![deny(missing_debug_implementations)]
|
|
#![deny(unused_results)]
|
|
#![forbid(unsafe_code)]
|
|
#![forbid(rust_2018_idioms)]
|
|
|
|
#[doc(no_inline)]
|
|
pub use iced_native::*;
|
|
pub use winit;
|
|
|
|
pub mod conversion;
|
|
pub mod settings;
|
|
|
|
mod application;
|
|
mod clipboard;
|
|
mod mode;
|
|
mod proxy;
|
|
mod size;
|
|
|
|
// We disable debug capabilities on release builds unless the `debug` feature
|
|
// is explicitly enabled.
|
|
#[cfg(feature = "debug")]
|
|
#[path = "debug/basic.rs"]
|
|
mod debug;
|
|
#[cfg(not(feature = "debug"))]
|
|
#[path = "debug/null.rs"]
|
|
mod debug;
|
|
|
|
pub use application::Application;
|
|
pub use clipboard::Clipboard;
|
|
pub use mode::Mode;
|
|
pub use settings::Settings;
|
|
|
|
use debug::Debug;
|
|
use proxy::Proxy;
|