mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
Draft web platform structure
This commit is contained in:
17
src/platform_impl/web/web_sys/mod.rs
Normal file
17
src/platform_impl/web/web_sys/mod.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
mod canvas;
|
||||
mod document;
|
||||
mod timeout;
|
||||
|
||||
pub use self::canvas::Canvas;
|
||||
pub use self::document::Document;
|
||||
pub use self::timeout::Timeout;
|
||||
|
||||
pub fn request_animation_frame<F>(f: F)
|
||||
where
|
||||
F: Fn(),
|
||||
{
|
||||
}
|
||||
|
||||
pub fn throw(msg: &str) {
|
||||
wasm_bindgen::throw_str(msg);
|
||||
}
|
||||
Reference in New Issue
Block a user