Introduce multi_window to iced_glutin
This commit is contained in:
parent
7f35256573
commit
974cc6b6f5
4 changed files with 26 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ chrome-trace = [
|
|||
"iced_glow?/tracing",
|
||||
]
|
||||
# Enables experimental multi-window support
|
||||
multi_window = ["iced_winit/multi_window"]
|
||||
multi_window = ["iced_winit/multi_window", "iced_glutin/multi_window"]
|
||||
|
||||
[badges]
|
||||
maintenance = { status = "actively-developed" }
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ categories = ["gui"]
|
|||
trace = ["iced_winit/trace"]
|
||||
debug = ["iced_winit/debug"]
|
||||
system = ["iced_winit/system"]
|
||||
multi_window = ["iced_winit/multi_window"]
|
||||
|
||||
[dependencies.log]
|
||||
version = "0.4"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
21
glutin/src/multi_window.rs
Normal file
21
glutin/src/multi_window.rs
Normal 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!")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue