Enum egui::PointerButton[][src]

pub enum PointerButton {
    Primary,
    Secondary,
    Middle,
}

Mouse button (or similar for touch input)

Variants

Primary

The primary mouse button is usually the left one.

Secondary

The secondary mouse button is usually the right one, and most often used for context menus or other optional things.

Middle

The tertiary mouse button is usually the middle mouse button (e.g. clicking the scroll wheel).

Trait Implementations

impl Clone for PointerButton[src]

impl Copy for PointerButton[src]

impl Debug for PointerButton[src]

impl Eq for PointerButton[src]

impl PartialEq<PointerButton> for PointerButton[src]

impl StructuralEq for PointerButton[src]

impl StructuralPartialEq for PointerButton[src]

Auto Trait Implementations

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.