-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2642 from tsuza/master
feat: add a window drag resize task
- Loading branch information
Showing
5 changed files
with
76 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/// The cardinal directions relative to the center of a window. | ||
#[derive(Debug, Clone, Copy)] | ||
pub enum Direction { | ||
/// Points to the top edge of a window. | ||
North, | ||
|
||
/// Points to the bottom edge of a window. | ||
South, | ||
|
||
/// Points to the right edge of a window. | ||
East, | ||
|
||
/// Points to the left edge of a window. | ||
West, | ||
|
||
/// Points to the top-right corner of a window. | ||
NorthEast, | ||
|
||
/// Points to the top-left corner of a window. | ||
NorthWest, | ||
|
||
/// Points to the bottom-right corner of a window. | ||
SouthEast, | ||
|
||
/// Points to the bottom-left corner of a window. | ||
SouthWest, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters