summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-12-06 04:06:41 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-12-10 04:51:08 +0100
commit1aeb317f2dbfb63215e6226073e67878ffa6503b (patch)
treed883266d796360a1e4d883dc82a4fb284f724790 /runtime
parent8e3636d769d96ab5ba49a9647b72c59ae2226dd0 (diff)
downloadiced-1aeb317f2dbfb63215e6226073e67878ffa6503b.tar.gz
iced-1aeb317f2dbfb63215e6226073e67878ffa6503b.tar.bz2
iced-1aeb317f2dbfb63215e6226073e67878ffa6503b.zip
Add image and hash snapshot-based testing to `iced_test`
Diffstat (limited to '')
-rw-r--r--core/src/window/screenshot.rs (renamed from runtime/src/window/screenshot.rs)2
-rw-r--r--runtime/src/window.rs6
2 files changed, 2 insertions, 6 deletions
diff --git a/runtime/src/window/screenshot.rs b/core/src/window/screenshot.rs
index d9adbc01..424168bb 100644
--- a/runtime/src/window/screenshot.rs
+++ b/core/src/window/screenshot.rs
@@ -1,5 +1,5 @@
//! Take screenshots of a window.
-use crate::core::{Rectangle, Size};
+use crate::{Rectangle, Size};
use bytes::Bytes;
use std::fmt::{Debug, Formatter};
diff --git a/runtime/src/window.rs b/runtime/src/window.rs
index 382f4518..0ebdba2f 100644
--- a/runtime/src/window.rs
+++ b/runtime/src/window.rs
@@ -1,11 +1,7 @@
//! Build window-based GUI applications.
-pub mod screenshot;
-
-pub use screenshot::Screenshot;
-
use crate::core::time::Instant;
use crate::core::window::{
- Event, Icon, Id, Level, Mode, Settings, UserAttention,
+ Event, Icon, Id, Level, Mode, Screenshot, Settings, UserAttention,
};
use crate::core::{Point, Size};
use crate::futures::event;