diff options
author | 2025-01-16 11:44:15 +0000 | |
---|---|---|
committer | 2025-01-16 11:44:15 +0000 | |
commit | 24297c549be022ee1e848c0c090df986e825f10c (patch) | |
tree | 10d10bf65d41de0d04ea7ae8037dd49681f3916b /core/src/window | |
parent | a00f564deed291765a35311784096193dc3988b3 (diff) | |
parent | 8a453903b99dd2855e556f5f8baab502441eb16b (diff) | |
download | iced-24297c549be022ee1e848c0c090df986e825f10c.tar.gz iced-24297c549be022ee1e848c0c090df986e825f10c.tar.bz2 iced-24297c549be022ee1e848c0c090df986e825f10c.zip |
Merge pull request #2642 from tsuza/master
feat: add a window drag resize task
Diffstat (limited to 'core/src/window')
-rw-r--r-- | core/src/window/direction.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/core/src/window/direction.rs b/core/src/window/direction.rs new file mode 100644 index 00000000..b757961e --- /dev/null +++ b/core/src/window/direction.rs @@ -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, +} |