Add command to retrieve window size

This commit is contained in:
Yiğit Özdemir 2023-06-21 19:43:20 +03:00
parent 59bb5a99aa
commit 21a71b753d
No known key found for this signature in database
GPG key ID: 7FDC39C00954F1C7
4 changed files with 42 additions and 0 deletions

View file

@ -6,6 +6,7 @@ mod level;
mod mode;
mod redraw_request;
mod user_attention;
mod fetch_size;
pub use event::Event;
pub use icon::Icon;
@ -13,3 +14,4 @@ pub use level::Level;
pub use mode::Mode;
pub use redraw_request::RedrawRequest;
pub use user_attention::UserAttention;
pub use fetch_size::SizeType;

View file

@ -0,0 +1,8 @@
/// A `struct` defining which size to fetch.
#[derive(Debug, Clone, Copy)]
pub enum SizeType {
/// Inner size. (not including title bars and so other OS decorations)
Inner,
/// Outer size. (including everything)
Outer,
}