pub struct WindowPicture {
pub window: u32,
pub title: String,
pub width: u32,
pub height: u32,
pub in_sight: bool,
pub png: Option<Vec<u8>>,
}Expand description
One of a program’s windows, as its user sees it: what cargo waos screenshot writes.
Fields§
§window: u32The window’s number, from 1 in the order the program’s windows opened: what an input’s
window names.
title: StringThe title the program gave the window; empty for one it left untitled, which shows the program’s name, and for a view in no window.
width: u32The size of the window’s picture, its view’s before it has one, in physical pixels: what an input’s point is in, from the top-left.
height: u32§in_sight: boolWhether the window is in sight. One minimized, hidden or covered all over shows no new picture until it is in sight again, and keeps showing its last.
png: Option<Vec<u8>>The last picture the program presented in the window, as a PNG, its drawing alone, without the composition layers beneath it; none before it presented one.
Trait Implementations§
Source§impl Clone for WindowPicture
impl Clone for WindowPicture
Source§impl Debug for WindowPicture
A picture is megabytes: an event that prints it says how many.
impl Debug for WindowPicture
A picture is megabytes: an event that prints it says how many.
Source§impl<'de> Deserialize<'de> for WindowPicture
impl<'de> Deserialize<'de> for WindowPicture
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for WindowPicture
Source§impl PartialEq for WindowPicture
impl PartialEq for WindowPicture
Source§impl Serialize for WindowPicture
impl Serialize for WindowPicture
impl StructuralPartialEq for WindowPicture
Auto Trait Implementations§
impl Forget for WindowPicture
impl Freeze for WindowPicture
impl Move for WindowPicture
impl RefUnwindSafe for WindowPicture
impl Send for WindowPicture
impl Sync for WindowPicture
impl Unpin for WindowPicture
impl UnsafeUnpin for WindowPicture
impl UnwindSafe for WindowPicture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.