feat: derive Debug, Copy, Clone, PartialEq, Eq, Hash for ResizeDirection (#859)

This commit is contained in:
Amr Bashir
2024-01-04 10:09:29 +02:00
committed by GitHub
parent fb3d7c4d82
commit f0bf850fee
2 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
"tao": "patch"
---
Derive `Debug, Copy, Clone, PartialEq, Eq, Hash` for `ResizeDirection`.

View File

@@ -1547,9 +1547,8 @@ impl WindowSizeConstraints {
}
}
/// A constant used to determine how much inside the window, the resize handler should appear (only used in Linux(gtk) and Windows).
/// You probably need to scale it by the scale_factor of the window.
/// Defines the orientation that a window resize will be performed.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum ResizeDirection {
East,
North,