mirror of
https://github.com/tauri-apps/tao.git
synced 2026-01-31 00:35:16 +01:00
feat: derive Debug, Copy, Clone, PartialEq, Eq, Hash for ResizeDirection (#859)
This commit is contained in:
5
.changes/resize-direction-traits.md
Normal file
5
.changes/resize-direction-traits.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tao": "patch"
|
||||
---
|
||||
|
||||
Derive `Debug, Copy, Clone, PartialEq, Eq, Hash` for `ResizeDirection`.
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user