From afd9274de26ccf65285df02007b4ddb697bea9a3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 18 Apr 2020 14:42:48 +0200 Subject: Draft `ComboBox` and `Menu` layer --- wgpu/src/widget/combo_box.rs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 wgpu/src/widget/combo_box.rs (limited to 'wgpu/src/widget') diff --git a/wgpu/src/widget/combo_box.rs b/wgpu/src/widget/combo_box.rs new file mode 100644 index 00000000..bb3931ef --- /dev/null +++ b/wgpu/src/widget/combo_box.rs @@ -0,0 +1,3 @@ +pub use iced_native::combo_box::State; + +pub type ComboBox<'a, T, Message> = iced_native::ComboBox<'a, T, Message>; -- cgit From 61f22b1db23f3495145a9a4f7255311fe8381998 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 11 Jun 2020 20:41:11 +0200 Subject: Add styling support for `ComboBox` and `Menu` --- wgpu/src/widget/combo_box.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'wgpu/src/widget') diff --git a/wgpu/src/widget/combo_box.rs b/wgpu/src/widget/combo_box.rs index bb3931ef..bfface29 100644 --- a/wgpu/src/widget/combo_box.rs +++ b/wgpu/src/widget/combo_box.rs @@ -1,3 +1,8 @@ pub use iced_native::combo_box::State; -pub type ComboBox<'a, T, Message> = iced_native::ComboBox<'a, T, Message>; +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>; -- cgit From 2118a726f8b6134820e1ca5b7b802fa1344e453a Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 10 Jul 2020 02:39:12 +0200 Subject: Write documentation for the new `overlay` API --- wgpu/src/widget/combo_box.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'wgpu/src/widget') diff --git a/wgpu/src/widget/combo_box.rs b/wgpu/src/widget/combo_box.rs index bfface29..20feeaca 100644 --- a/wgpu/src/widget/combo_box.rs +++ b/wgpu/src/widget/combo_box.rs @@ -1,3 +1,4 @@ +//! Display a dropdown list of selectable values. pub use iced_native::combo_box::State; pub use iced_graphics::combo_box::{Style, StyleSheet}; -- cgit From 73b8ae8e5e7f57c608c775272a2980995ab22bb3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 10 Jul 2020 02:50:47 +0200 Subject: Rename `ComboBox` to `PickList` --- wgpu/src/widget/combo_box.rs | 9 --------- wgpu/src/widget/pick_list.rs | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 wgpu/src/widget/combo_box.rs create mode 100644 wgpu/src/widget/pick_list.rs (limited to 'wgpu/src/widget') diff --git a/wgpu/src/widget/combo_box.rs b/wgpu/src/widget/combo_box.rs deleted file mode 100644 index 20feeaca..00000000 --- a/wgpu/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/wgpu/src/widget/pick_list.rs b/wgpu/src/widget/pick_list.rs new file mode 100644 index 00000000..fccc68c9 --- /dev/null +++ b/wgpu/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>; -- cgit