diff options
Diffstat (limited to 'native/src/lib.rs')
-rw-r--r-- | native/src/lib.rs | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/native/src/lib.rs b/native/src/lib.rs index 45c3c699..e4e7baee 100644 --- a/native/src/lib.rs +++ b/native/src/lib.rs @@ -14,7 +14,7 @@ //! - A [`Widget`] trait, which is used to implement new widgets: from layout //! requirements to event and drawing logic. //! - A bunch of `Renderer` traits, meant to keep the crate renderer-agnostic. -//! - A [`Windowed`] trait, leveraging [`raw-window-handle`], which can be +//! - A [`window::Renderer`] trait, leveraging [`raw-window-handle`], which can be //! implemented by graphical renderers that target _windows_. Window-based //! shells (like [`iced_winit`]) can use this trait to stay renderer-agnostic. //! @@ -31,37 +31,46 @@ //! [`druid`]: https://github.com/xi-editor/druid //! [`raw-window-handle`]: https://github.com/rust-windowing/raw-window-handle //! [`Widget`]: widget/trait.Widget.html -//! [`Windowed`]: renderer/trait.Windowed.html +//! [`window::Renderer`]: window/trait.Renderer.html //! [`UserInterface`]: struct.UserInterface.html //! [renderer]: renderer/index.html #![deny(missing_docs)] #![deny(missing_debug_implementations)] #![deny(unused_results)] -#![deny(unsafe_code)] -#![deny(rust_2018_idioms)] +#![forbid(unsafe_code)] +#![forbid(rust_2018_idioms)] pub mod input; pub mod layout; pub mod renderer; +pub mod subscription; pub mod widget; +pub mod window; +mod clipboard; mod element; mod event; mod hasher; mod mouse_cursor; -mod size; +mod runtime; mod user_interface; pub use iced_core::{ - Align, Background, Color, Command, Font, HorizontalAlignment, Length, - Point, Rectangle, Vector, VerticalAlignment, + Align, Background, Color, Font, HorizontalAlignment, Length, Point, + Rectangle, Size, Vector, VerticalAlignment, }; +pub use iced_futures::{executor, futures, Command}; +#[doc(no_inline)] +pub use executor::Executor; + +pub use clipboard::Clipboard; pub use element::Element; pub use event::Event; pub use hasher::Hasher; pub use layout::Layout; pub use mouse_cursor::MouseCursor; pub use renderer::Renderer; -pub use size::Size; +pub use runtime::Runtime; +pub use subscription::Subscription; pub use user_interface::{Cache, UserInterface}; pub use widget::*; |