Introduce multi_window to iced_glutin

This commit is contained in:
Richard 2022-09-19 16:01:50 -03:00 committed by bungoboingo
parent 7f35256573
commit 974cc6b6f5
4 changed files with 26 additions and 1 deletions

View file

@ -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;

View file

@ -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!")
}