iced-yoda/glow/src/widget.rs

80 lines
1.8 KiB
Rust
Raw Normal View History

//! Use the widgets supported out-of-the-box.
//!
//! # Re-exports
//! For convenience, the contents of this module are available at the root
//! module. Therefore, you can directly type:
//!
//! ```
//! use iced_glow::{button, Button};
//! ```
use crate::Renderer;
pub mod button;
pub mod checkbox;
pub mod container;
pub mod pane_grid;
2020-07-10 02:50:47 +02:00
pub mod pick_list;
pub mod progress_bar;
pub mod radio;
2020-08-13 12:54:34 -05:00
pub mod rule;
pub mod scrollable;
pub mod slider;
pub mod text_input;
2020-09-19 20:16:36 +02:00
pub mod toggler;
2021-02-23 03:18:47 +01:00
pub mod tooltip;
#[doc(no_inline)]
pub use button::Button;
#[doc(no_inline)]
pub use checkbox::Checkbox;
#[doc(no_inline)]
pub use container::Container;
#[doc(no_inline)]
pub use pane_grid::PaneGrid;
#[doc(no_inline)]
2020-07-10 02:50:47 +02:00
pub use pick_list::PickList;
#[doc(no_inline)]
pub use progress_bar::ProgressBar;
#[doc(no_inline)]
pub use radio::Radio;
#[doc(no_inline)]
2020-08-13 12:54:34 -05:00
pub use rule::Rule;
#[doc(no_inline)]
pub use scrollable::Scrollable;
#[doc(no_inline)]
pub use slider::Slider;
#[doc(no_inline)]
pub use text_input::TextInput;
2021-02-23 03:18:47 +01:00
#[doc(no_inline)]
2020-09-19 20:16:36 +02:00
pub use toggler::Toggler;
#[doc(no_inline)]
2021-02-23 03:18:47 +01:00
pub use tooltip::Tooltip;
2020-05-21 00:37:47 +02:00
#[cfg(feature = "canvas")]
#[cfg_attr(docsrs, doc(cfg(feature = "canvas")))]
pub mod canvas;
#[cfg(feature = "canvas")]
#[doc(no_inline)]
pub use canvas::Canvas;
2020-11-20 10:13:58 +01:00
#[cfg(feature = "qr_code")]
#[cfg_attr(docsrs, doc(cfg(feature = "qr_code")))]
pub mod qr_code;
#[cfg(feature = "qr_code")]
#[doc(no_inline)]
pub use qr_code::QRCode;
pub use iced_native::widget::{Image, Space};
2020-05-28 01:46:17 +02:00
/// A container that distributes its contents vertically.
pub type Column<'a, Message> =
iced_native::widget::Column<'a, Message, Renderer>;
2020-05-28 01:46:17 +02:00
/// A container that distributes its contents horizontally.
pub type Row<'a, Message> = iced_native::widget::Row<'a, Message, Renderer>;
2020-05-28 01:46:17 +02:00
/// A paragraph of text.
pub type Text = iced_native::widget::Text<Renderer>;