Struct egui::EventFilter
source · pub struct EventFilter {
pub tab: bool,
pub horizontal_arrows: bool,
pub vertical_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
horizontal_arrows: bool
If true
, pressing horizontal arrows will act on the
widget, and NOT move focus away from the focused widget.
Default: false
vertical_arrows: bool
If true
, pressing vertical 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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)