summaryrefslogtreecommitdiffstats
path: root/web/src/widget.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 16:47:50 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 21:37:16 +0700
commit825c7749ff364cf1f7ae5cab0c25f27ed85c7d82 (patch)
treefdd7e499c343a7e3cf690d4b5aa40ba568674a3c /web/src/widget.rs
parent1e3feee3a36f25d7e2eda231c3e6b895858952c5 (diff)
downloadiced-825c7749ff364cf1f7ae5cab0c25f27ed85c7d82.tar.gz
iced-825c7749ff364cf1f7ae5cab0c25f27ed85c7d82.tar.bz2
iced-825c7749ff364cf1f7ae5cab0c25f27ed85c7d82.zip
Replace `iced_web` with WebGL support in `wgpu` :tada:
Diffstat (limited to 'web/src/widget.rs')
-rw-r--r--web/src/widget.rs68
1 files changed, 0 insertions, 68 deletions
diff --git a/web/src/widget.rs b/web/src/widget.rs
deleted file mode 100644
index 4cb0a9cc..00000000
--- a/web/src/widget.rs
+++ /dev/null
@@ -1,68 +0,0 @@
-//! Use the built-in widgets or create your own.
-//!
-//! # Custom widgets
-//! If you want to implement a custom widget, you simply need to implement the
-//! [`Widget`] trait. You can use the API of the built-in widgets as a guide or
-//! source of inspiration.
-//!
-//! # Re-exports
-//! For convenience, the contents of this module are available at the root
-//! module. Therefore, you can directly type:
-//!
-//! ```
-//! use iced_web::{button, Button, Widget};
-//! ```
-use crate::{Bus, Css};
-use dodrio::bumpalo;
-
-pub mod button;
-pub mod checkbox;
-pub mod container;
-pub mod image;
-pub mod progress_bar;
-pub mod radio;
-pub mod scrollable;
-pub mod slider;
-pub mod text_input;
-pub mod toggler;
-
-mod column;
-mod row;
-mod space;
-mod text;
-
-#[doc(no_inline)]
-pub use button::Button;
-#[doc(no_inline)]
-pub use scrollable::Scrollable;
-#[doc(no_inline)]
-pub use slider::Slider;
-#[doc(no_inline)]
-pub use text::Text;
-#[doc(no_inline)]
-pub use text_input::TextInput;
-#[doc(no_inline)]
-pub use toggler::Toggler;
-
-pub use checkbox::Checkbox;
-pub use column::Column;
-pub use container::Container;
-pub use image::Image;
-pub use progress_bar::ProgressBar;
-pub use radio::Radio;
-pub use row::Row;
-pub use space::Space;
-
-/// A component that displays information and allows interaction.
-///
-/// If you want to build your own widgets, you will need to implement this
-/// trait.
-pub trait Widget<Message> {
- /// Produces a VDOM node for the [`Widget`].
- fn node<'b>(
- &self,
- bump: &'b bumpalo::Bump,
- _bus: &Bus<Message>,
- style_sheet: &mut Css<'b>,
- ) -> dodrio::Node<'b>;
-}