feat: add a window drag resize task

This commit is contained in:
tsuza 2024-10-16 18:17:10 +02:00 committed by Héctor Ramón Jiménez
parent a00f564dee
commit e3f149d932
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
5 changed files with 77 additions and 2 deletions

View file

@ -3,6 +3,7 @@ pub mod icon;
pub mod screenshot;
pub mod settings;
mod direction;
mod event;
mod id;
mod level;
@ -11,6 +12,7 @@ mod position;
mod redraw_request;
mod user_attention;
pub use direction::Direction;
pub use event::Event;
pub use icon::Icon;
pub use id::Id;

View file

@ -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,
}