1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use thiserror::Error;

pub use common::MenuItem;

pub use platform::Application;
pub use platform::ApplicationOptions;
pub use platform::Dispatcher;
pub use platform::FileDialog;
pub use platform::Icon;
pub use platform::TrayIcon;
pub use platform::TrayIconType;
pub use platform::Window;
pub use platform::WindowFrameType;

mod common;
mod platform;

#[derive(Error, Debug)]
pub enum FUISystemError {
    #[error("Not initialized")]
    NotInitialized,

    #[error("Out of memory")]
    OutOfMemory,

    #[error("OsError: {0}")]
    OsError(String),
}