mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
Draft web platform structure
This commit is contained in:
13
src/platform_impl/web/web_sys/document.rs
Normal file
13
src/platform_impl/web/web_sys/document.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
pub struct Document;
|
||||
|
||||
impl Document {
|
||||
pub fn set_title(title: &str) {}
|
||||
|
||||
pub fn on_blur<F>(f: F) {}
|
||||
|
||||
pub fn on_focus<F>(f: F) {}
|
||||
|
||||
pub fn on_key_up<F>(f: F) {}
|
||||
|
||||
pub fn on_key_down<F>(f: F) {}
|
||||
}
|
||||
Reference in New Issue
Block a user