Export Window type

This commit is contained in:
William Venner
2022-10-06 17:20:55 +01:00
parent 7de6111d83
commit 20d89c5504
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ mod plugin;
use plugin::EguiPlugin;
pub use plugin::EguiPluginHandle;
pub type Window = plugin::Window<tauri::EventLoopMessage>;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("failed to create window: {0}")]

View File

@@ -37,7 +37,7 @@ use std::{
};
pub mod window;
use window::Window;
pub(super) use window::Window;
pub type AppCreator = Box<dyn FnOnce(&CreationContext<'_>) -> Box<dyn eframe::App + Send> + Send>;