pub struct MockWindow {
pub handle: u64,
pub node: NodeId,
pub title: String,
pub size: Size,
pub kind: String,
pub tabbing: WindowTabbing,
pub open: bool,
pub focused: bool,
pub fit_size: Option<Size>,
}Expand description
A secondary window opened through the open_window duty (docs/windows.md),
probe-visible for the open_window tests.
Fields§
§handle: u64The content-container widget handle.
node: NodeIdThe window root’s spec-boundary id (events emit to it).
title: String§size: Size§kind: String"normal" | "preferences".
tabbing: WindowTabbingThe tabbing the window was opened with (docs/windows.md).
open: bool§focused: bool§fit_size: Option<Size>The content size the window was fitted to (WindowOptions::size_to_fit), or None if it
kept the size it was opened at. Probe-visible so a test can assert that a preferences
panel shrank to its rows rather than keeping the caller’s ceiling.
Trait Implementations§
Source§impl Clone for MockWindow
impl Clone for MockWindow
Auto Trait Implementations§
impl Forget for MockWindow
impl Freeze for MockWindow
impl Move for MockWindow
impl RefUnwindSafe for MockWindow
impl Send for MockWindow
impl Sync for MockWindow
impl Unpin for MockWindow
impl UnsafeUnpin for MockWindow
impl UnwindSafe for MockWindow
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
Mutably borrows from an owned value. Read more