#[repr(u8)]pub enum InputEventResult {
EventAccepted = 0,
EventIgnored = 1,
GrabMouse = 2,
}
Expand description
This value is returned by the input_event
function of an Item
to notify the run-time about how the event was handled and
what the next steps are.
See crate::items::ItemVTable::input_event
.
Variants§
EventAccepted = 0
The event was accepted. This may result in additional events, for example accepting a mouse move will result in a MouseExit event later.
EventIgnored = 1
The event was ignored.
GrabMouse = 2
All further mouse event need to be sent to this item or component
Trait Implementations§
Source§impl Clone for InputEventResult
impl Clone for InputEventResult
Source§fn clone(&self) -> InputEventResult
fn clone(&self) -> InputEventResult
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 InputEventResult
impl Debug for InputEventResult
Source§impl Default for InputEventResult
impl Default for InputEventResult
Source§fn default() -> InputEventResult
fn default() -> InputEventResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for InputEventResult
impl PartialEq for InputEventResult
impl Copy for InputEventResult
impl Eq for InputEventResult
impl StructuralPartialEq for InputEventResult
Auto Trait Implementations§
impl Freeze for InputEventResult
impl RefUnwindSafe for InputEventResult
impl Send for InputEventResult
impl Sync for InputEventResult
impl Unpin for InputEventResult
impl UnwindSafe for InputEventResult
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