Add access to the canvas in the Window

This commit is contained in:
Ryan Goldstein 2019-05-31 21:48:26 -07:00
parent 70c7382a09
commit 37dadab745
3 changed files with 18 additions and 1 deletions

View file

@ -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
View file

@ -0,0 +1,8 @@
#![cfg(feature = "stdweb")]
use stdweb::web::html_element::CanvasElement;
pub trait WindowExtStdweb {
fn canvas(&self) -> CanvasElement;
}