Allow providing a DOM identifier as a target for Wasm
This commit is contained in:
parent
ab2872fe2b
commit
d8d57a800a
5 changed files with 34 additions and 8 deletions
|
|
@ -1,4 +1,3 @@
|
|||
#![cfg(target_os = "macos")]
|
||||
//! Platform specific settings for macOS.
|
||||
|
||||
/// The platform specific window settings of an application.
|
||||
|
|
|
|||
11
winit/src/settings/wasm.rs
Normal file
11
winit/src/settings/wasm.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
//! Platform specific settings for WebAssembly.
|
||||
|
||||
/// The platform specific window settings of an application.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Default)]
|
||||
pub struct PlatformSpecific {
|
||||
/// The identifier of a DOM element that will be replaced with the
|
||||
/// application.
|
||||
///
|
||||
/// If set to `None`, the application will be appended to the HTML body.
|
||||
pub target: Option<String>,
|
||||
}
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
#![cfg(target_os = "windows")]
|
||||
//! Platform specific settings for Windows.
|
||||
|
||||
/// The platform specific window settings of an application.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue