diff options
author | 2020-06-08 02:07:45 -0700 | |
---|---|---|
committer | 2020-06-08 11:07:45 +0200 | |
commit | 4960a8827e46cafca672ed7c4550086a9c6029bc (patch) | |
tree | c6509fe1d414af1520f4c5cb741e92caa4c3c44d /examples | |
parent | 40750d9b36286056508e340ad14ac77c432366ee (diff) | |
download | iced-4960a8827e46cafca672ed7c4550086a9c6029bc.tar.gz iced-4960a8827e46cafca672ed7c4550086a9c6029bc.tar.bz2 iced-4960a8827e46cafca672ed7c4550086a9c6029bc.zip |
Add on_release message to Slider (#378)
* Add on_finish callback to Slider
* Fix formatting
* Rename Slider's on_finish to on_release, make the message simply an event without data
* Satisfy Clone impl requirement on Message in integration test
* Only call on_release after dragging a slider
Diffstat (limited to 'examples')
-rw-r--r-- | examples/integration/src/controls.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/integration/src/controls.rs b/examples/integration/src/controls.rs index 81c35072..e6e74995 100644 --- a/examples/integration/src/controls.rs +++ b/examples/integration/src/controls.rs @@ -9,7 +9,7 @@ pub struct Controls { sliders: [slider::State; 3], } -#[derive(Debug)] +#[derive(Debug, Clone)] pub enum Message { BackgroundColorChanged(Color), } |