diff options
author | 2020-07-10 02:50:47 +0200 | |
---|---|---|
committer | 2020-07-10 02:52:00 +0200 | |
commit | 73b8ae8e5e7f57c608c775272a2980995ab22bb3 (patch) | |
tree | 1315ae257af6598389750c392b0e52fd1a3cbf39 /examples | |
parent | 2118a726f8b6134820e1ca5b7b802fa1344e453a (diff) | |
download | iced-73b8ae8e5e7f57c608c775272a2980995ab22bb3.tar.gz iced-73b8ae8e5e7f57c608c775272a2980995ab22bb3.tar.bz2 iced-73b8ae8e5e7f57c608c775272a2980995ab22bb3.zip |
Rename `ComboBox` to `PickList`
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pick_list/Cargo.toml (renamed from examples/combo_box/Cargo.toml) | 4 | ||||
-rw-r--r-- | examples/pick_list/README.md (renamed from examples/combo_box/README.md) | 0 | ||||
-rw-r--r-- | examples/pick_list/src/main.rs (renamed from examples/combo_box/src/main.rs) | 14 |
3 files changed, 8 insertions, 10 deletions
diff --git a/examples/combo_box/Cargo.toml b/examples/pick_list/Cargo.toml index 7e1e4133..a87d7217 100644 --- a/examples/combo_box/Cargo.toml +++ b/examples/pick_list/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "combo_box" +name = "pick_list" version = "0.1.0" authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"] edition = "2018" @@ -7,5 +7,3 @@ publish = false [dependencies] iced = { path = "../..", features = ["debug"] } -iced_native = { path = "../../native" } -iced_wgpu = { path = "../../wgpu" } diff --git a/examples/combo_box/README.md b/examples/pick_list/README.md index 4d9fc5b9..4d9fc5b9 100644 --- a/examples/combo_box/README.md +++ b/examples/pick_list/README.md diff --git a/examples/combo_box/src/main.rs b/examples/pick_list/src/main.rs index 416e9f76..4eb368d1 100644 --- a/examples/combo_box/src/main.rs +++ b/examples/pick_list/src/main.rs @@ -1,6 +1,6 @@ use iced::{ - button, combo_box, scrollable, Align, Button, ComboBox, Container, Element, - Length, Sandbox, Scrollable, Settings, Space, Text, + button, pick_list, scrollable, Align, Button, Container, Element, Length, + PickList, Sandbox, Scrollable, Settings, Space, Text, }; pub fn main() { @@ -11,7 +11,7 @@ pub fn main() { struct Example { scroll: scrollable::State, button: button::State, - combo_box: combo_box::State, + pick_list: pick_list::State, selected_language: Language, } @@ -29,7 +29,7 @@ impl Sandbox for Example { } fn title(&self) -> String { - String::from("Combo box - Iced") + String::from("Pick list - Iced") } fn update(&mut self, message: Message) { @@ -42,8 +42,8 @@ impl Sandbox for Example { } fn view(&mut self) -> Element<Message> { - let combo_box = ComboBox::new( - &mut self.combo_box, + let pick_list = PickList::new( + &mut self.pick_list, &Language::ALL[..], Some(self.selected_language), Message::LanguageSelected, @@ -58,7 +58,7 @@ impl Sandbox for Example { .spacing(10) .push(Space::with_height(Length::Units(800))) .push(Text::new("Which is your favorite language?")) - .push(combo_box); + .push(pick_list); content = content .push(button) |