Struct orbclient::event::FocusEvent
source · [−]pub struct FocusEvent {
pub focused: bool,
}Expand description
A focus event
Fields
focused: boolTrue if window has been focused, false if not
Implementations
sourceimpl FocusEvent
impl FocusEvent
pub fn to_event(&self) -> Event
pub fn from_event(event: Event) -> FocusEvent
Trait Implementations
sourceimpl Clone for FocusEvent
impl Clone for FocusEvent
sourcefn clone(&self) -> FocusEvent
fn clone(&self) -> FocusEvent
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for FocusEvent
impl Debug for FocusEvent
impl Copy for FocusEvent
Auto Trait Implementations
impl RefUnwindSafe for FocusEvent
impl Send for FocusEvent
impl Sync for FocusEvent
impl Unpin for FocusEvent
impl UnwindSafe for FocusEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more