winit/src/platform_impl/web/mod.rs

31 lines
735 B
Rust
Raw Normal View History

2019-07-16 20:00:03 -07:00
// TODO: close events (port from old stdweb branch)
2019-06-25 03:15:34 +02:00
// TODO: pointer locking (stdweb PR required)
2019-07-16 20:00:03 -07:00
// TODO: fullscreen API (stdweb PR required)
2019-06-25 03:15:34 +02:00
mod device;
mod error;
mod event_loop;
mod monitor;
mod window;
#[cfg(feature = "web-sys")]
2019-06-25 03:15:34 +02:00
#[path = "web_sys/mod.rs"]
mod backend;
#[cfg(feature = "stdweb")]
#[path = "stdweb/mod.rs"]
mod backend;
2019-06-25 03:15:34 +02:00
pub use self::device::Id as DeviceId;
pub use self::error::OsError;
pub use self::event_loop::{
EventLoop, Proxy as EventLoopProxy, WindowTarget as EventLoopWindowTarget,
};
2019-09-24 19:39:13 -04:00
pub use self::monitor::{
Handle as MonitorHandle, Mode as VideoMode
};
2019-06-25 03:15:34 +02:00
pub use self::window::{
Id as WindowId, PlatformSpecificBuilderAttributes as PlatformSpecificWindowBuilderAttributes,
Window,
};