pub struct TestWindows { /* private fields */ }Expand description
A desktop’s answer to requests for views: each request makes a window at once, over a view
that carries the request’s id and initial data. A test hands it to a platform
(TestPlatform::with_windows), which lists the views
of the windows still open; the test tells the framework of each new view itself, as a host
would through EmbedderClient::view_added.
Implementations§
Source§impl TestWindows
impl TestWindows
pub fn new() -> TestWindows
Sourcepub fn on_screen(self, screen: ScreenId) -> TestWindows
pub fn on_screen(self, screen: ScreenId) -> TestWindows
The same desktop making every window on screen, which each view’s metrics name.
Sourcepub fn made(&self) -> Vec<Rc<TestWindow>>
pub fn made(&self) -> Vec<Rc<TestWindow>>
The windows made so far, in the order they were asked for, closed ones included.
Trait Implementations§
Source§impl Default for TestWindows
impl Default for TestWindows
Source§fn default() -> TestWindows
fn default() -> TestWindows
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for TestWindows
impl !RefUnwindSafe for TestWindows
impl !Send for TestWindows
impl !Sync for TestWindows
impl !UnwindSafe for TestWindows
impl Forget for TestWindows
impl Move for TestWindows
impl Unpin for TestWindows
impl UnsafeUnpin for TestWindows
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