Trait winit::platform::web::WindowExtWebSys
source · pub trait WindowExtWebSys {
// Required methods
fn canvas(&self) -> HtmlCanvasElement;
fn is_dark_mode(&self) -> bool;
}
Available on
wasm_platform
only.Required Methods§
fn canvas(&self) -> HtmlCanvasElement
sourcefn is_dark_mode(&self) -> bool
fn is_dark_mode(&self) -> bool
Whether the browser reports the preferred color scheme to be “dark”.