Struct egui::Sense [−][src]
Expand description
What sort of interaction is a widget sensitive to?
Fields
click: bool
buttons, sliders, windows …
drag: bool
sliders, windows, scroll bars, scroll areas …
focusable: bool
this widgets want focus. Anything interactive + labels that can be focused for the benefit of screen readers.
Implementations
Senses no clicks or drags, but can be focused with the keyboard. Used for labels that can be focused for the benefit of screen readers.
👎 Deprecated:
Use hover()
Sense both clicks, drags and hover (e.g. a slider or window).
Returns true if we sense either clicks or drags.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sense
impl UnwindSafe for Sense
Blanket Implementations
Mutably borrows from an owned value. Read more