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 more