pub enum EventStatus {
Captured,
Ignored,
AcceptDrop(DropEffect),
}Expand description
Return value for WindowHandler::on_event, indicating whether the event was handled by your window or should be passed back to the platform.
For most event types, this value won’t have any effect. This is the case
when there is no clear meaning of passing back the event to the platform,
or it isn’t obviously useful. Currently, only Event::Keyboard variants
are supported.
Variants§
Captured
Event was handled by your window and will not be sent back to the platform for further processing.
Ignored
Event was not handled by your window, so pass it back to the platform. For parented windows, this usually means that the parent window will receive the event. This is useful for cases such as using DAW functionality for playing piano keys with the keyboard while a plugin window is in focus.
AcceptDrop(DropEffect)
We are prepared to handle the data in the drag and dropping will result in DropEffect
Trait Implementations§
Source§impl Clone for EventStatus
impl Clone for EventStatus
Source§fn clone(&self) -> EventStatus
fn clone(&self) -> EventStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventStatus
impl Debug for EventStatus
Source§impl PartialEq for EventStatus
impl PartialEq for EventStatus
Source§fn eq(&self, other: &EventStatus) -> bool
fn eq(&self, other: &EventStatus) -> bool
self and other values to be equal, and is used by ==.