Implement WasmBindgen executor and reorganize
This commit is contained in:
parent
90690702e1
commit
04086a90c9
11 changed files with 176 additions and 110 deletions
9
src/element.rs
Normal file
9
src/element.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/// A generic widget.
|
||||
///
|
||||
/// This is an alias of an `iced_native` element with a default `Renderer`.
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub type Element<'a, Message> =
|
||||
iced_winit::Element<'a, Message, iced_wgpu::Renderer>;
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
pub use iced_web::Element;
|
||||
Loading…
Add table
Add a link
Reference in a new issue