summaryrefslogtreecommitdiffstats
path: root/widget/src/slider.rs
diff options
context:
space:
mode:
authorLibravatar Héctor <hector@hecrj.dev>2024-10-14 21:09:16 +0200
committerLibravatar GitHub <noreply@github.com>2024-10-14 21:09:16 +0200
commit5d8fc922c840b9492699a7981dd6bbbe8ed0489d (patch)
tree7ab5b37c97532c2f65bae8783c6876dffa139ba4 /widget/src/slider.rs
parentc217500a5abd1fbfc1e598fb98dadd3ee85d8a51 (diff)
parentf912d26d64c80fe767e97a0c79416d7398f04488 (diff)
downloadiced-5d8fc922c840b9492699a7981dd6bbbe8ed0489d.tar.gz
iced-5d8fc922c840b9492699a7981dd6bbbe8ed0489d.tar.bz2
iced-5d8fc922c840b9492699a7981dd6bbbe8ed0489d.zip
Merge pull request #2637 from Brady-Simon/style-partialeq
Add PartialEq derives for widget styles
Diffstat (limited to 'widget/src/slider.rs')
-rw-r--r--widget/src/slider.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/widget/src/slider.rs b/widget/src/slider.rs
index 9477958d..31aa0e0c 100644
--- a/widget/src/slider.rs
+++ b/widget/src/slider.rs
@@ -562,7 +562,7 @@ pub enum Status {
}
/// The appearance of a slider.
-#[derive(Debug, Clone, Copy)]
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Style {
/// The colors of the rail of the slider.
pub rail: Rail,
@@ -582,7 +582,7 @@ impl Style {
}
/// The appearance of a slider rail
-#[derive(Debug, Clone, Copy)]
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Rail {
/// The backgrounds of the rail of the slider.
pub backgrounds: (Background, Background),
@@ -593,7 +593,7 @@ pub struct Rail {
}
/// The appearance of the handle of a slider.
-#[derive(Debug, Clone, Copy)]
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Handle {
/// The shape of the handle.
pub shape: HandleShape,
@@ -606,7 +606,7 @@ pub struct Handle {
}
/// The shape of the handle of a slider.
-#[derive(Debug, Clone, Copy)]
+#[derive(Debug, Clone, Copy, PartialEq)]
pub enum HandleShape {
/// A circular handle.
Circle {