Enum egui::data::input::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
impl Copy for ViewportEvent
impl Eq for ViewportEvent
impl StructuralPartialEq for ViewportEvent
Auto Trait Implementations§
impl Freeze for ViewportEvent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)