#[repr(u8)]pub enum FocusEvent {
FocusIn = 0,
FocusOut = 1,
WindowReceivedFocus = 2,
WindowLostFocus = 3,
}
Expand description
This event is sent to a component and items when they receive or loose the keyboard focus.
Variants§
FocusIn = 0
This event is sent when an item receives the focus.
FocusOut = 1
This event is sent when an item looses the focus.
WindowReceivedFocus = 2
This event is sent when the window receives the keyboard focus.
WindowLostFocus = 3
This event is sent when the window looses the keyboard focus.
Trait Implementations§
Source§impl Clone for FocusEvent
impl Clone for FocusEvent
Source§fn clone(&self) -> FocusEvent
fn clone(&self) -> FocusEvent
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 FocusEvent
impl Debug for FocusEvent
Source§impl PartialEq for FocusEvent
impl PartialEq for FocusEvent
impl Copy for FocusEvent
impl StructuralPartialEq for FocusEvent
Auto Trait Implementations§
impl Freeze for FocusEvent
impl RefUnwindSafe for FocusEvent
impl Send for FocusEvent
impl Sync for FocusEvent
impl Unpin for FocusEvent
impl UnwindSafe for FocusEvent
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