pub struct AppWindow(/* private fields */);Implementations§
Trait Implementations§
Source§impl ComponentHandle for AppWindow
impl ComponentHandle for AppWindow
Source§fn clone_strong(&self) -> Self
fn clone_strong(&self) -> Self
Returns a clone of this handle that’s a strong reference.
Source§fn run(&self) -> Result<(), PlatformError>
fn run(&self) -> Result<(), PlatformError>
This is a convenience function that first calls
Self::show, followed by crate::run_event_loop()
and Self::hide.Source§fn show(&self) -> Result<(), PlatformError>
fn show(&self) -> Result<(), PlatformError>
Convenience function for
crate::Window::show().
This shows the window on the screen and maintains an extra strong reference while
the window is visible. To react to events from the windowing system, such as draw
requests or mouse/touch input, it is still necessary to spin the event loop,
using crate::run_event_loop.Source§fn hide(&self) -> Result<(), PlatformError>
fn hide(&self) -> Result<(), PlatformError>
Convenience function for
crate::Window::hide().
Hides the window, so that it is not visible anymore. The additional strong reference
on the associated component, that was created when show() was called, is dropped.Auto Trait Implementations§
impl Freeze for AppWindow
impl !RefUnwindSafe for AppWindow
impl !Send for AppWindow
impl !Sync for AppWindow
impl Unpin for AppWindow
impl !UnwindSafe for AppWindow
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