2023-09-09 20:58:45 +02:00
|
|
|
#![forbid(rust_2018_idioms)]
|
2023-09-20 16:40:03 +02:00
|
|
|
#![deny(unsafe_code, unused_results, rustdoc::broken_intra_doc_links)]
|
2023-09-09 20:58:45 +02:00
|
|
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
2023-11-14 12:49:49 +01:00
|
|
|
#[cfg(feature = "wgpu")]
|
|
|
|
|
pub use iced_wgpu as wgpu;
|
|
|
|
|
|
2024-03-21 22:27:17 +01:00
|
|
|
pub mod fallback;
|
2023-03-03 04:57:55 +01:00
|
|
|
|
2023-02-24 23:24:48 +01:00
|
|
|
mod settings;
|
|
|
|
|
|
2023-03-04 05:37:11 +01:00
|
|
|
pub use iced_graphics as graphics;
|
|
|
|
|
pub use iced_graphics::core;
|
2023-03-01 21:34:26 +01:00
|
|
|
|
2023-06-22 00:38:36 +02:00
|
|
|
#[cfg(feature = "geometry")]
|
2024-03-21 22:27:17 +01:00
|
|
|
pub use iced_graphics::geometry;
|
2023-06-22 00:38:36 +02:00
|
|
|
|
2024-03-21 22:27:17 +01:00
|
|
|
pub use settings::Settings;
|
2023-06-22 00:38:36 +02:00
|
|
|
|
2023-02-24 23:24:48 +01:00
|
|
|
/// The default graphics renderer for [`iced`].
|
|
|
|
|
///
|
|
|
|
|
/// [`iced`]: https://github.com/iced-rs/iced
|
2024-03-21 22:27:17 +01:00
|
|
|
#[cfg(not(feature = "wgpu"))]
|
|
|
|
|
pub type Renderer = iced_tiny_skia::Renderer;
|
2023-06-22 00:38:36 +02:00
|
|
|
|
2024-03-21 22:27:17 +01:00
|
|
|
/// The default graphics renderer for [`iced`].
|
|
|
|
|
///
|
|
|
|
|
/// [`iced`]: https://github.com/iced-rs/iced
|
|
|
|
|
#[cfg(feature = "wgpu")]
|
|
|
|
|
pub type Renderer =
|
|
|
|
|
fallback::Renderer<iced_wgpu::Renderer, iced_tiny_skia::Renderer>;
|
2023-06-22 00:38:36 +02:00
|
|
|
|
2024-03-21 22:27:17 +01:00
|
|
|
/// The default graphics compositor for [`iced`].
|
|
|
|
|
///
|
|
|
|
|
/// [`iced`]: https://github.com/iced-rs/iced
|
|
|
|
|
#[cfg(not(feature = "wgpu"))]
|
|
|
|
|
pub type Compositor = iced_tiny_skia::window::Compositor;
|
2023-11-14 12:49:49 +01:00
|
|
|
|
2024-03-21 22:27:17 +01:00
|
|
|
/// The default graphics renderer for [`iced`].
|
|
|
|
|
///
|
|
|
|
|
/// [`iced`]: https://github.com/iced-rs/iced
|
2023-11-14 12:49:49 +01:00
|
|
|
#[cfg(feature = "wgpu")]
|
2024-03-21 22:27:17 +01:00
|
|
|
pub type Compositor = fallback::Compositor<
|
|
|
|
|
iced_wgpu::window::Compositor,
|
|
|
|
|
iced_tiny_skia::window::Compositor,
|
|
|
|
|
>;
|