#[non_exhaustive]pub enum WindowCommand {
Move,
Resize(ResizeEdge),
ToggleMaximize,
Close,
}Expand description
One request to change the window, as
App::take_window_commands hands it
to the windowing layer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Move
Start an interactive move, as if the user grabbed the window’s title bar with the press that is being handled.
Resize(ResizeEdge)
Start an interactive resize from an edge or corner, as if the user grabbed that edge with the press that is being handled.
ToggleMaximize
Restore the window if it is maximized, or maximize it if it is not.
Close
Close the window and end the run, as a close button does.
Trait Implementations§
Source§impl Clone for WindowCommand
impl Clone for WindowCommand
impl Copy for WindowCommand
Source§impl Debug for WindowCommand
impl Debug for WindowCommand
impl Eq for WindowCommand
Source§impl PartialEq for WindowCommand
impl PartialEq for WindowCommand
impl StructuralPartialEq for WindowCommand
Auto Trait Implementations§
impl Forget for WindowCommand
impl Freeze for WindowCommand
impl Move for WindowCommand
impl RefUnwindSafe for WindowCommand
impl Send for WindowCommand
impl Sync for WindowCommand
impl Unpin for WindowCommand
impl UnsafeUnpin for WindowCommand
impl UnwindSafe for WindowCommand
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