diff options
author | 2022-09-19 16:01:50 -0300 | |
---|---|---|
committer | 2023-01-09 11:27:04 -0800 | |
commit | 974cc6b6f55178976b0ace626ba03bdd88cde5e0 (patch) | |
tree | 0551784e9e05b925f7542df3861c14c942c73858 /glutin/src | |
parent | 7f35256573db789fa6552c2cfd8aa16dde2a1a4d (diff) | |
download | iced-974cc6b6f55178976b0ace626ba03bdd88cde5e0.tar.gz iced-974cc6b6f55178976b0ace626ba03bdd88cde5e0.tar.bz2 iced-974cc6b6f55178976b0ace626ba03bdd88cde5e0.zip |
Introduce `multi_window` to `iced_glutin`
Diffstat (limited to 'glutin/src')
-rw-r--r-- | glutin/src/lib.rs | 3 | ||||
-rw-r--r-- | glutin/src/multi_window.rs | 21 |
2 files changed, 24 insertions, 0 deletions
diff --git a/glutin/src/lib.rs b/glutin/src/lib.rs index 33afd664..45d6cb5b 100644 --- a/glutin/src/lib.rs +++ b/glutin/src/lib.rs @@ -29,5 +29,8 @@ pub use iced_winit::*; pub mod application; +#[cfg(feature = "multi_window")] +pub mod multi_window; + #[doc(no_inline)] pub use application::Application; diff --git a/glutin/src/multi_window.rs b/glutin/src/multi_window.rs new file mode 100644 index 00000000..46d00d81 --- /dev/null +++ b/glutin/src/multi_window.rs @@ -0,0 +1,21 @@ +//! Create interactive, native cross-platform applications. +use crate::{Error, Executor}; + +pub use iced_winit::multi_window::{Application, StyleSheet}; + +use iced_winit::Settings; + +/// Runs an [`Application`] with an executor, compositor, and the provided +/// settings. +pub fn run<A, E, C>( + _settings: Settings<A::Flags>, + _compositor_settings: C::Settings, +) -> Result<(), Error> +where + A: Application + 'static, + E: Executor + 'static, + C: iced_graphics::window::GLCompositor<Renderer = A::Renderer> + 'static, + <A::Renderer as iced_native::Renderer>::Theme: StyleSheet, +{ + unimplemented!("iced_glutin not implemented!") +} |