Skip to content

Commit

Permalink
Export Window type
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamVenner committed Oct 6, 2022
1 parent 7de6111 commit 20d89c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}")]
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>;

Expand Down

0 comments on commit 20d89c5

Please sign in to comment.