-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmod.rs
More file actions
48 lines (43 loc) · 989 Bytes
/
mod.rs
File metadata and controls
48 lines (43 loc) · 989 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
cfg_if::cfg_if! {
if #[cfg(windows)] {
#[path = "windows/mod.rs"]
mod sys;
} else if #[cfg(target_os = "macos")] {
#[path = "mac/mod.rs"]
mod sys;
} else {
#[cfg(all(not(feature = "gtk"), not(feature = "qt")))]
compile_error!("You must choose one of these features: [\"gtk\", \"qt\"]");
cfg_if::cfg_if! {
if #[cfg(feature = "qt")] {
#[path = "qt/mod.rs"]
mod sys;
} else {
#[path = "gtk/mod.rs"]
mod sys;
}
}
}
}
pub use sys::*;
mod canvas;
mod drawing;
mod filebox;
mod monitor;
mod msgbox;
mod window_handle;
pub mod export {
pub use super::{
canvas::*,
drawing::*,
filebox::*,
monitor::*,
msgbox::*,
sys::{Brush, Pen, RawWindow},
window_handle::*,
};
}
#[cfg(not(windows))]
mod callback;
#[cfg(not(windows))]
pub(crate) use callback::*;