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

pub enum Ui {
    Text(Option<Index>, Text),
    Press(Option<Index>, Press),
    Release(Option<Index>, Release),
    Move(Option<Index>, Move),
    WindowResized(Dimensions),
    Click(Option<Index>, Click),
    DoubleClick(Option<Index>, DoubleClick),
    Drag(Option<Index>, Drag),
    Scroll(Option<Index>, Scroll),
    WidgetCapturesMouse(Index),
    WidgetUncapturesMouse(Index),
    WidgetCapturesKeyboard(Index),
    WidgetUncapturesKeyboard(Index),
}

Represents all events interpreted by the Ui.

Variants

Text(Option<Index>, Text)

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

Press(Option<Index>, Press)

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

Release(Option<Index>, Release)

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

Move(Option<Index>, Move)

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

WindowResized(Dimensions)

The window's dimensions were resized.

Click(Option<Index>, Click)

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

DoubleClick(Option<Index>, DoubleClick)

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

Drag(Option<Index>, Drag)

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

Scroll(Option<Index>, Scroll)

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.

WidgetCapturesMouse(Index)

Indicates that the given widget has captured the mouse.

WidgetUncapturesMouse(Index)

Indicates that the given widget has released the mouse from capturing.

WidgetCapturesKeyboard(Index)

Indicates that the given widget has captured the keyboard.

WidgetUncapturesKeyboard(Index)

Indicates that the given widget has released the keyboard from capturing.

Trait Implementations

impl Debug for Ui
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for Ui
[src]

fn eq(&self, __arg_0: &Ui) -> bool

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

fn ne(&self, __arg_0: &Ui) -> bool

This method tests for !=.

impl Clone for Ui
[src]

fn clone(&self) -> Ui

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more