[][src]Enum pixel_widgets::event::NodeEvent

pub enum NodeEvent {
    MouseEnter,
    MouseLeave,
    MouseMove,
    MouseDown(Key),
    MouseUp(Key),
    MouseClick(Key),
}

Events that can be subscribed to on a node

Variants

MouseEnter

Occurs when the mouse starts hovering the widget

MouseLeave

Occurs when the mouse stops hovering the widget

MouseMove

Occurs when the mouse moves while hovering the widget

MouseDown(Key)

Occurs when a mouse button goes down while hovering the widget

MouseUp(Key)

Occurs when a mouse button goes up while hovering the widget

MouseClick(Key)

Occurs when a mouse button goes up while hovering the widget, but only if the mouse didn't stop hovering for the entire duration of the click.

Trait Implementations

impl Clone for NodeEvent[src]

impl Copy for NodeEvent[src]

impl Debug for NodeEvent[src]

impl Eq for NodeEvent[src]

impl PartialEq<NodeEvent> for NodeEvent[src]

impl StructuralEq for NodeEvent[src]

impl StructuralPartialEq for NodeEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

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

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

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DragDropId for T where
    T: 'static + Send + Copy
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.