Improve documentation

This commit is contained in:
Héctor Ramón Jiménez 2019-09-24 15:15:34 +02:00
parent c08171e89e
commit 5e28f80af8
4 changed files with 22 additions and 9 deletions

View file

@ -1,3 +1,4 @@
/// The strategy used to fill space in a specific dimension.
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
pub enum Length {
Fill,

View file

@ -7,21 +7,27 @@
//! ```
//! use iced_core::{button, Button};
//! ```
mod checkbox;
mod column;
mod image;
mod radio;
mod row;
pub mod button;
pub mod checkbox;
pub mod image;
pub mod radio;
pub mod slider;
pub mod text;
#[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;

View file

@ -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 {

View file

@ -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>(