Enum conrod::event::Ui [] [src]

pub enum Ui {
    Text(Option<Id>, Text),
    Press(Option<Id>, Press),
    Release(Option<Id>, Release),
    Motion(Option<Id>, Motion),
    Touch(Option<Id>, Touch),
    WindowResized(Dimensions),
    Click(Option<Id>, Click),
    DoubleClick(Option<Id>, DoubleClick),
    Tap(Option<Id>, Tap),
    Drag(Option<Id>, Drag),
    Scroll(Option<Id>, Scroll),
    WidgetCapturesInputSource(IdSource),
    WidgetUncapturesInputSource(IdSource),
}

Represents all events interpreted by the Ui.

Variants

Entered text, along with the widget that was capturing the keyboard at the time.

Some button was pressed, along with the widget that was capturing the device whose button was pressed.

Some button was released, along with the widget that was capturing the device whose button was released.

Represents all forms of motion input, alongside with the widget that was capturing the mouse at the time.

Interaction with a touch screen/surface.

The window's dimensions were resized.

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 a touch screen/surface.

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

A generic scroll event.

Scroll does not necessarily have to get created by a mouse wheel, it could be generated from a keypress, or as a response to handling some other event.

Received Scroll events are first applied to all scrollable widgets under the mouse from top to bottom. The remainder will then be applied to either 1. whatever widget captures the device from which the scroll was emitted or 2. whatever widget was specified.

Indicates that the given widget has captured the given user input source.

Indicates that the given widget has released the given user input source.

Trait Implementations

impl Clone for Ui
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Ui
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Ui
[src]

[src]

Formats the value using the given formatter.