pub struct NativeFocusEvent { /* private fields */ }Expand description
Data associated with a focus event.
Indicates whether the element is gaining or losing focus.
Implementations§
Source§impl NativeFocusEvent
Implementation of NativeFocusEvent construction.
impl NativeFocusEvent
Implementation of NativeFocusEvent construction.
Source§impl NativeFocusEvent
impl NativeFocusEvent
pub fn get_is_focus(&self) -> &bool
pub fn get_mut_is_focus(&mut self) -> &mut bool
pub fn set_is_focus(&mut self, val: bool) -> &mut Self
pub fn get_is_blur(&self) -> &bool
pub fn get_mut_is_blur(&mut self) -> &mut bool
pub fn set_is_blur(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for NativeFocusEvent
impl Clone for NativeFocusEvent
Source§fn clone(&self) -> NativeFocusEvent
fn clone(&self) -> NativeFocusEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NativeFocusEvent
impl Debug for NativeFocusEvent
Source§impl Default for NativeFocusEvent
impl Default for NativeFocusEvent
Source§fn default() -> NativeFocusEvent
fn default() -> NativeFocusEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for NativeFocusEvent
impl PartialEq for NativeFocusEvent
Source§fn eq(&self, other: &NativeFocusEvent) -> bool
fn eq(&self, other: &NativeFocusEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for NativeFocusEvent
impl StructuralPartialEq for NativeFocusEvent
Auto Trait Implementations§
impl Freeze for NativeFocusEvent
impl RefUnwindSafe for NativeFocusEvent
impl Send for NativeFocusEvent
impl Sync for NativeFocusEvent
impl Unpin for NativeFocusEvent
impl UnsafeUnpin for NativeFocusEvent
impl UnwindSafe for NativeFocusEvent
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