summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorLibravatar Yiğit Özdemir <yigitozdemir1299@gmail.com>2023-06-21 19:43:20 +0300
committerLibravatar Yiğit Özdemir <yigitozdemir1299@gmail.com>2023-06-21 19:43:20 +0300
commit21a71b753d6da2233bce913f4e623ee14859ec23 (patch)
tree5293118e70f65b4f3805b508dad9a8185e260e32 /core/src
parent59bb5a99aaefa13f01735e0b6b127fa498be902f (diff)
downloadiced-21a71b753d6da2233bce913f4e623ee14859ec23.tar.gz
iced-21a71b753d6da2233bce913f4e623ee14859ec23.tar.bz2
iced-21a71b753d6da2233bce913f4e623ee14859ec23.zip
Add command to retrieve window size
Diffstat (limited to 'core/src')
-rw-r--r--core/src/window.rs2
-rw-r--r--core/src/window/fetch_size.rs8
2 files changed, 10 insertions, 0 deletions
diff --git a/core/src/window.rs b/core/src/window.rs
index a6dbdfb4..cd343893 100644
--- a/core/src/window.rs
+++ b/core/src/window.rs
@@ -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; \ No newline at end of file
diff --git a/core/src/window/fetch_size.rs b/core/src/window/fetch_size.rs
new file mode 100644
index 00000000..aa3431aa
--- /dev/null
+++ b/core/src/window/fetch_size.rs
@@ -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,
+} \ No newline at end of file