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<'de> Deserialize<'de> for ViewportEvent
impl<'de> Deserialize<'de> for ViewportEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ViewportEvent
impl PartialEq for ViewportEvent
Source§impl Serialize for ViewportEvent
impl Serialize 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