summaryrefslogtreecommitdiffstats
path: root/web/src/widget.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-23 20:23:38 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-23 20:23:38 +0100
commitd0f79d2779d00752eef78cd98b6904cd888d59e3 (patch)
tree436e757d7b24ae9791dc554d341b38d6646285d3 /web/src/widget.rs
parent3a678561f2da92e089390ee79bd4f9efc2c1a8c7 (diff)
downloadiced-d0f79d2779d00752eef78cd98b6904cd888d59e3.tar.gz
iced-d0f79d2779d00752eef78cd98b6904cd888d59e3.tar.bz2
iced-d0f79d2779d00752eef78cd98b6904cd888d59e3.zip
Make `tour` work with `iced_web` again :tada:
- Implements `TextInput`, `Scrollable`, and `Container` - Adds basic style generation
Diffstat (limited to 'web/src/widget.rs')
-rw-r--r--web/src/widget.rs13
1 files changed, 10 insertions, 3 deletions
diff --git a/web/src/widget.rs b/web/src/widget.rs
index 30ac8eeb..b0e16692 100644
--- a/web/src/widget.rs
+++ b/web/src/widget.rs
@@ -14,14 +14,17 @@
//! ```
//!
//! [`Widget`]: trait.Widget.html
-use crate::Bus;
+use crate::{style, Bus};
use dodrio::bumpalo;
pub mod button;
+pub mod scrollable;
pub mod slider;
+pub mod text_input;
mod checkbox;
mod column;
+mod container;
mod image;
mod radio;
mod row;
@@ -29,15 +32,18 @@ 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;
pub use checkbox::Checkbox;
pub use column::Column;
+pub use container::Container;
pub use image::Image;
pub use radio::Radio;
pub use row::Row;
@@ -56,5 +62,6 @@ pub trait Widget<Message> {
&self,
bump: &'b bumpalo::Bump,
_bus: &Bus<Message>,
+ style_sheet: &mut style::Sheet<'b>,
) -> dodrio::Node<'b>;
}