mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-26 15:21:29 +11:00
16 lines
333 B
Rust
16 lines
333 B
Rust
#[cfg(feature = "stdweb")]
|
|
use stdweb::web::html_element::CanvasElement;
|
|
|
|
#[cfg(feature = "stdweb")]
|
|
pub trait WindowExtStdweb {
|
|
fn canvas(&self) -> CanvasElement;
|
|
}
|
|
|
|
#[cfg(feature = "web-sys")]
|
|
use web_sys::HtmlCanvasElement;
|
|
|
|
#[cfg(feature = "web-sys")]
|
|
pub trait WindowExtWebSys {
|
|
fn canvas(&self) -> HtmlCanvasElement;
|
|
}
|