pub struct EventFilter {
pub foregrounded: bool,
pub backgrounded: bool,
pub focused: bool,
pub unfocused: bool,
pub created: bool,
pub resized: bool,
pub moved: bool,
pub hidden: bool,
pub showed: bool,
pub closed: bool,
}Expand description
Represents a filter for window events.
Fields§
§foregrounded: boolWhether to observe Event::Foregrounded events.
backgrounded: boolWhether to observe Event::Backgrounded events.
focused: boolWhether to observe Event::Focused events.
unfocused: boolWhether to observe Event::Unfocused events.
created: boolWhether to observe Event::Created events.
resized: boolWhether to observe Event::Resized events.
moved: boolWhether to observe Event::Moved events.
Whether to observe Event::Hidden events.
showed: boolWhether to observe Event::Showed events.
closed: boolWhether to observe Event::Closed events.
Implementations§
Trait Implementations§
Source§impl Clone for EventFilter
impl Clone for EventFilter
Source§fn clone(&self) -> EventFilter
fn clone(&self) -> EventFilter
Returns a duplicate 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 EventFilter
impl Debug for EventFilter
Source§impl Default for EventFilter
impl Default for EventFilter
Source§fn default() -> EventFilter
fn default() -> EventFilter
Returns the “default value” for a type. Read more
Source§impl PartialEq for EventFilter
impl PartialEq for EventFilter
impl Copy for EventFilter
impl Eq for EventFilter
impl StructuralPartialEq for EventFilter
Auto Trait Implementations§
impl Freeze for EventFilter
impl RefUnwindSafe for EventFilter
impl Send for EventFilter
impl Sync for EventFilter
impl Unpin for EventFilter
impl UnwindSafe for EventFilter
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