diff options
author | 2022-11-05 01:56:25 +0100 | |
---|---|---|
committer | 2022-11-05 01:56:25 +0100 | |
commit | 1632826c8e70f9f1f5f1f3b3fbb5a4d421f7afbe (patch) | |
tree | 8a0c6c4eda5ffd349d65c9b0d4273982a21c79c4 /winit/src/settings/wasm.rs | |
parent | d222b5c8b0befab665c20ba0112b28199df0ae44 (diff) | |
parent | d8d57a800a2e1bd11dc4d69634d630c8e6117c39 (diff) | |
download | iced-1632826c8e70f9f1f5f1f3b3fbb5a4d421f7afbe.tar.gz iced-1632826c8e70f9f1f5f1f3b3fbb5a4d421f7afbe.tar.bz2 iced-1632826c8e70f9f1f5f1f3b3fbb5a4d421f7afbe.zip |
Merge pull request #1443 from traxys/div_canvas
Allow to replace an element instead of append to body for web rendering
Diffstat (limited to '')
-rw-r--r-- | winit/src/settings/wasm.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/winit/src/settings/wasm.rs b/winit/src/settings/wasm.rs new file mode 100644 index 00000000..8e0f1bbc --- /dev/null +++ b/winit/src/settings/wasm.rs @@ -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>, +} |