Add PartialEq derives for widget styles
This commit is contained in:
parent
c217500a5a
commit
f912d26d64
13 changed files with 19 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue