mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 21:30:03 -04:00
Add access to the canvas in the Window
This commit is contained in:
@@ -20,4 +20,6 @@ pub mod macos;
|
||||
pub mod unix;
|
||||
pub mod windows;
|
||||
|
||||
pub mod stdweb;
|
||||
|
||||
pub mod desktop;
|
||||
|
||||
8
src/platform/stdweb.rs
Normal file
8
src/platform/stdweb.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
#![cfg(feature = "stdweb")]
|
||||
|
||||
use stdweb::web::html_element::CanvasElement;
|
||||
|
||||
pub trait WindowExtStdweb {
|
||||
fn canvas(&self) -> CanvasElement;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user