summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-24 15:15:34 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-24 15:15:34 +0200
commit5e28f80af8349be2638eb80d2a06c81fd14d631c (patch)
tree946817e16775e4ea0a062b4d22f5efd46c655a21 /web
parentc08171e89e9336f87a7eb27881897cfa34529125 (diff)
downloadiced-5e28f80af8349be2638eb80d2a06c81fd14d631c.tar.gz
iced-5e28f80af8349be2638eb80d2a06c81fd14d631c.tar.bz2
iced-5e28f80af8349be2638eb80d2a06c81fd14d631c.zip
Improve documentation
Diffstat (limited to 'web')
-rw-r--r--web/src/lib.rs4
-rw-r--r--web/src/widget.rs10
2 files changed, 10 insertions, 4 deletions
diff --git a/web/src/lib.rs b/web/src/lib.rs
index 09ca3460..caf17df5 100644
--- a/web/src/lib.rs
+++ b/web/src/lib.rs
@@ -4,11 +4,11 @@ use std::cell::RefCell;
mod bus;
mod element;
-mod widget;
+pub mod widget;
pub use bus::Bus;
pub use element::Element;
-pub use iced_core::{Align, Color, Length};
+pub use iced_core::{Align, Color, Justify, Length};
pub use widget::*;
pub trait UserInterface {
diff --git a/web/src/widget.rs b/web/src/widget.rs
index 67ca8e81..88b2efc9 100644
--- a/web/src/widget.rs
+++ b/web/src/widget.rs
@@ -11,14 +11,20 @@ mod image;
mod radio;
mod row;
+#[doc(no_inline)]
pub use button::Button;
+
+#[doc(no_inline)]
+pub use slider::Slider;
+
+#[doc(no_inline)]
+pub use text::Text;
+
pub use checkbox::Checkbox;
pub use column::Column;
pub use image::Image;
pub use radio::Radio;
pub use row::Row;
-pub use slider::Slider;
-pub use text::Text;
pub trait Widget<Message> {
fn node<'b>(