Move Screenshot inside window module

This commit is contained in:
Héctor Ramón Jiménez 2023-06-27 19:41:03 +02:00
parent 93673836cd
commit 5ae726e02c
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
7 changed files with 13 additions and 10 deletions

View file

@ -60,7 +60,6 @@ mod debug;
#[cfg(not(feature = "debug"))]
#[path = "debug/null.rs"]
mod debug;
mod screenshot;
pub use iced_core as core;
pub use iced_futures as futures;
@ -69,5 +68,4 @@ pub use command::Command;
pub use debug::Debug;
pub use font::Font;
pub use program::Program;
pub use screenshot::{CropError, Screenshot};
pub use user_interface::UserInterface;

View file

@ -1,13 +1,15 @@
//! Build window-based GUI applications.
mod action;
pub mod screenshot;
pub use action::Action;
pub use screenshot::Screenshot;
use crate::command::{self, Command};
use crate::core::time::Instant;
use crate::core::window::{Event, Icon, Level, Mode, UserAttention};
use crate::futures::subscription::{self, Subscription};
use crate::screenshot::Screenshot;
/// Subscribes to the frames of the window of the running application.
///

View file

@ -1,7 +1,7 @@
use crate::core::window::{Icon, Level, Mode, UserAttention};
use crate::futures::MaybeSend;
use crate::window::Screenshot;
use crate::screenshot::Screenshot;
use std::fmt;
/// An operation to be performed on some window.

View file

@ -1,3 +1,4 @@
//! Take screenshots of a window.
use crate::core::{Rectangle, Size};
use std::fmt::{Debug, Formatter};