Struct egui::Sense[][src]

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 hover() -> Self[src]

Senses no clicks or drags. Only senses mouse hover.

pub fn nothing() -> Self[src]

👎 Deprecated:

Use hover()

pub fn click() -> Self[src]

Sense clicks and hover, but not drags.

pub fn drag() -> Self[src]

Sense drags and hover, but not clicks.

pub fn click_and_drag() -> Self[src]

Sense both clicks, drags and hover (e.g. a slider or window).

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

The logical “or” of two Senses.

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.