Struct orbclient::event::FocusEvent
source · pub struct FocusEvent {
pub focused: bool,
}
Expand description
A focus event
Fields§
§focused: bool
True if window has been focused, false if not
Implementations§
source§impl FocusEvent
impl FocusEvent
pub fn to_event(&self) -> Event
pub fn from_event(event: Event) -> FocusEvent
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
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§
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