Struct egui::Sense [−][src]
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
impl Sense
[src]
impl Sense
[src]pub fn focusable_noninteractive() -> Self
[src]
pub fn focusable_noninteractive() -> Self
[src]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.
pub fn nothing() -> Self
[src]
👎 Deprecated:
Use hover()
pub fn click_and_drag() -> Self
[src]
pub fn click_and_drag() -> Self
[src]Sense both clicks, drags and hover (e.g. a slider or window).
pub fn interactive(&self) -> bool
[src]
pub fn interactive(&self) -> bool
[src]Returns true if we sense either clicks or drags.
Trait Implementations
impl Copy for Sense
[src]
impl Eq for Sense
[src]
impl StructuralEq for Sense
[src]
impl StructuralPartialEq for Sense
[src]
Auto Trait Implementations
impl RefUnwindSafe for Sense
impl Send for Sense
impl Sync for Sense
impl Unpin for Sense
impl UnwindSafe for Sense
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more