Enum egui::ViewportEvent
source · pub enum ViewportEvent {
Close,
}
Expand description
An input event from the backend into egui, about a specific viewport.
Variants§
Close
The user clicked the close-button on the window, or similar.
If this is the root viewport, the application will exit
after this frame unless you send a
crate::ViewportCommand::CancelClose
command.
If this is not the root viewport, it is up to the user to hide this viewport the next frame.
This even will wake up both the child and parent viewport.
Trait Implementations§
source§impl Clone for ViewportEvent
impl Clone for ViewportEvent
source§fn clone(&self) -> ViewportEvent
fn clone(&self) -> ViewportEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ViewportEvent
impl Debug for ViewportEvent
source§impl PartialEq for ViewportEvent
impl PartialEq for ViewportEvent
source§fn eq(&self, other: &ViewportEvent) -> bool
fn eq(&self, other: &ViewportEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ViewportEvent
impl Eq for ViewportEvent
impl StructuralEq for ViewportEvent
impl StructuralPartialEq for ViewportEvent
Auto Trait Implementations§
impl RefUnwindSafe for ViewportEvent
impl Send for ViewportEvent
impl Sync for ViewportEvent
impl Unpin for ViewportEvent
impl UnwindSafe for ViewportEvent
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