Skip to content

Commit

Permalink
feat: derive Debug, Copy, Clone, PartialEq, Eq, Hash for `ResizeDir…
Browse files Browse the repository at this point in the history
…ection` (#859)
  • Loading branch information
amrbashir authored Jan 4, 2024
1 parent fb3d7c4 commit f0bf850
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changes/resize-direction-traits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tao": "patch"
---

Derive `Debug, Copy, Clone, PartialEq, Eq, Hash` for `ResizeDirection`.
5 changes: 2 additions & 3 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f0bf850

Please sign in to comment.