[][src]Struct egui::Sense

pub struct Sense {
    pub click: bool,
    pub drag: bool,
}

What sort of interaction is a widget sensitive to?

Fields

click: bool

buttons, sliders, windows ...

drag: bool

sliders, windows, scroll bars, scroll areas ...

Implementations

impl Sense[src]

pub fn nothing() -> Self[src]

Senses no clicks or drags (but everything senses mouse hover).

pub fn click() -> Self[src]

pub fn drag() -> Self[src]

pub fn click_and_drag() -> Self[src]

e.g. a slider or window

#[must_use]pub fn union(self, other: Self) -> Self[src]

Trait Implementations

impl Clone for Sense[src]

impl Copy for Sense[src]

impl Debug for Sense[src]

impl Eq for Sense[src]

impl PartialEq<Sense> 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.