pub struct FocusEvent {
pub focused: bool,
}Expand description
Focus change notification dispatched to widgets when runtime focus changes.
§Examples
use ailloli_ui_core::event::FocusEvent;
assert!(FocusEvent::new(true).focused);Fields§
§focused: booltrue when focus was gained and false when it was lost.
Implementations§
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 Eq 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