Add command to retrieve window size
This commit is contained in:
parent
59bb5a99aa
commit
21a71b753d
4 changed files with 42 additions and 0 deletions
|
|
@ -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;
|
||||
8
core/src/window/fetch_size.rs
Normal file
8
core/src/window/fetch_size.rs
Normal 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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue