Struct egui::EventFilter
source · pub struct EventFilter {
pub tab: bool,
pub arrows: bool,
pub escape: bool,
}
Expand description
Controls which events that a focused widget will have exclusive access to.
Currently this only controls a few special keyboard events,
but in the future this struct
should be extended into a full callback thing.
Any events not covered by the filter are given to the widget, but are not exclusive.
Fields§
§tab: bool
If true
, pressing tab will act on the widget,
and NOT move focus away from the focused widget.
Default: false
arrows: bool
If true
, pressing arrows will act on the widget,
and NOT move focus away from the focused widget.
Default: false
escape: bool
If true
, pressing escape will act on the widget,
and NOT surrender focus from the focused widget.
Default: false
Implementations§
Trait Implementations§
source§impl Clone for EventFilter
impl Clone for EventFilter
source§fn clone(&self) -> EventFilter
fn clone(&self) -> EventFilter
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 EventFilter
impl Debug for EventFilter
source§impl Default for EventFilter
impl Default for EventFilter
impl Copy for EventFilter
Auto Trait Implementations§
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