Enum nannou::ui::event::Widget[][src]

pub enum Widget {
    Text(Text),
    Motion(Motion),
    Touch(Touch),
    Press(Press),
    Release(Release),
    Click(Click),
    DoubleClick(DoubleClick),
    Tap(Tap),
    Drag(Drag),
    Scroll(Scroll),
    WindowResized([f64; 2]),
    CapturesInputSource(Source),
    UncapturesInputSource(Source),
}

Events that apply to a specific widget.

Rather than delivering entire event::Events to the widget (with a lot of redundant information), this event::Widget is used as a refined, widget-specific event.

All Widget event co-ordinates will be relative to the centre of the Widget to which they are delivered.

Variants

Entered text.

Represents all forms of motion input.

Interaction with a touch screen.

Some button was pressed.

Some button was released.

Represents a pointing device being pressed and subsequently released while over the same location.

Two Click events with the same button and xy occurring within a duration that is less that the theme.double_click_threshold.

A user tapped the widget on a touch screen/surface.

Represents a pointing device button being pressed and a subsequent movement of the mouse.

Represents the amount of scroll that has been applied to this widget.

The window's dimensions were resized.

The widget has captured the given input source.

The widget has released the input source from capturing.

Trait Implementations

impl Clone for Widget
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Widget
[src]

Formats the value using the given formatter. Read more

impl From<Press> for Widget
[src]

Performs the conversion.

impl From<Click> for Widget
[src]

Performs the conversion.

impl From<Tap> for Widget
[src]

Performs the conversion.

impl From<Touch> for Widget
[src]

Performs the conversion.

impl From<Release> for Widget
[src]

Performs the conversion.

impl From<Motion> for Widget
[src]

Performs the conversion.

impl From<Drag> for Widget
[src]

Performs the conversion.

impl From<Text> for Widget
[src]

Performs the conversion.

impl From<Scroll> for Widget
[src]

Performs the conversion.

impl From<DoubleClick> for Widget
[src]

Performs the conversion.

impl PartialEq<Widget> for Widget
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Widget

impl Sync for Widget