diff options
author | 2020-07-10 02:50:47 +0200 | |
---|---|---|
committer | 2020-07-10 02:52:00 +0200 | |
commit | 73b8ae8e5e7f57c608c775272a2980995ab22bb3 (patch) | |
tree | 1315ae257af6598389750c392b0e52fd1a3cbf39 /glow | |
parent | 2118a726f8b6134820e1ca5b7b802fa1344e453a (diff) | |
download | iced-73b8ae8e5e7f57c608c775272a2980995ab22bb3.tar.gz iced-73b8ae8e5e7f57c608c775272a2980995ab22bb3.tar.bz2 iced-73b8ae8e5e7f57c608c775272a2980995ab22bb3.zip |
Rename `ComboBox` to `PickList`
Diffstat (limited to 'glow')
-rw-r--r-- | glow/src/widget.rs | 6 | ||||
-rw-r--r-- | glow/src/widget/combo_box.rs | 9 | ||||
-rw-r--r-- | glow/src/widget/pick_list.rs | 9 |
3 files changed, 12 insertions, 12 deletions
diff --git a/glow/src/widget.rs b/glow/src/widget.rs index c8f16725..4e2fedc5 100644 --- a/glow/src/widget.rs +++ b/glow/src/widget.rs @@ -11,9 +11,9 @@ use crate::Renderer; pub mod button; pub mod checkbox; -pub mod combo_box; pub mod container; pub mod pane_grid; +pub mod pick_list; pub mod progress_bar; pub mod radio; pub mod scrollable; @@ -25,12 +25,12 @@ pub use button::Button; #[doc(no_inline)] pub use checkbox::Checkbox; #[doc(no_inline)] -pub use combo_box::ComboBox; -#[doc(no_inline)] pub use container::Container; #[doc(no_inline)] pub use pane_grid::PaneGrid; #[doc(no_inline)] +pub use pick_list::PickList; +#[doc(no_inline)] pub use progress_bar::ProgressBar; #[doc(no_inline)] pub use radio::Radio; diff --git a/glow/src/widget/combo_box.rs b/glow/src/widget/combo_box.rs deleted file mode 100644 index 20feeaca..00000000 --- a/glow/src/widget/combo_box.rs +++ /dev/null @@ -1,9 +0,0 @@ -//! Display a dropdown list of selectable values. -pub use iced_native::combo_box::State; - -pub use iced_graphics::combo_box::{Style, StyleSheet}; -pub use iced_graphics::overlay::menu::Style as Menu; - -/// A widget allowing the selection of a single value from a list of options. -pub type ComboBox<'a, T, Message> = - iced_native::ComboBox<'a, T, Message, crate::Renderer>; diff --git a/glow/src/widget/pick_list.rs b/glow/src/widget/pick_list.rs new file mode 100644 index 00000000..fccc68c9 --- /dev/null +++ b/glow/src/widget/pick_list.rs @@ -0,0 +1,9 @@ +//! Display a dropdown list of selectable values. +pub use iced_native::pick_list::State; + +pub use iced_graphics::overlay::menu::Style as Menu; +pub use iced_graphics::pick_list::{Style, StyleSheet}; + +/// A widget allowing the selection of a single value from a list of options. +pub type PickList<'a, T, Message> = + iced_native::PickList<'a, T, Message, crate::Renderer>; |