Enum nannou::ui::event::Ui [−][src]
pub enum Ui { Text(Option<NodeIndex<u32>>, Text), Press(Option<NodeIndex<u32>>, Press), Release(Option<NodeIndex<u32>>, Release), Motion(Option<NodeIndex<u32>>, Motion), Touch(Option<NodeIndex<u32>>, Touch), WindowResized([f64; 2]), Click(Option<NodeIndex<u32>>, Click), DoubleClick(Option<NodeIndex<u32>>, DoubleClick), Tap(Option<NodeIndex<u32>>, Tap), Drag(Option<NodeIndex<u32>>, Drag), Scroll(Option<NodeIndex<u32>>, Scroll), WidgetCapturesInputSource(NodeIndex<u32>, Source), WidgetUncapturesInputSource(NodeIndex<u32>, Source), }
Represents all events interpreted by the Ui
.
Variants
Text(Option<NodeIndex<u32>>, Text)
Entered text, along with the widget that was capturing the keyboard at the time.
Press(Option<NodeIndex<u32>>, Press)
Some button was pressed, along with the widget that was capturing the device whose button was pressed.
Release(Option<NodeIndex<u32>>, Release)
Some button was released, along with the widget that was capturing the device whose button was released.
Motion(Option<NodeIndex<u32>>, Motion)
Represents all forms of motion input, alongside with the widget that was capturing the mouse at the time.
Touch(Option<NodeIndex<u32>>, Touch)
Interaction with a touch screen/surface.
WindowResized([f64; 2])
The window's dimensions were resized.
Click(Option<NodeIndex<u32>>, Click)
Represents a pointing device being pressed and subsequently released while over the same location.
DoubleClick(Option<NodeIndex<u32>>, DoubleClick)
Two Click
events with the same button
and xy
occurring within a duration that is less
that the theme.double_click_threshold
.
Tap(Option<NodeIndex<u32>>, Tap)
A user tapped a touch screen/surface.
Drag(Option<NodeIndex<u32>>, Drag)
Represents a pointing device button being pressed and a subsequent movement of the mouse.
Scroll(Option<NodeIndex<u32>>, 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.
WidgetCapturesInputSource(NodeIndex<u32>, Source)
Indicates that the given widget has captured the given user input source.
WidgetUncapturesInputSource(NodeIndex<u32>, Source)
Indicates that the given widget has released the given user input source.
Trait Implementations
impl Clone for Ui
[src]
impl Clone for Ui
fn clone(&self) -> Ui
[src]
fn clone(&self) -> Ui
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Ui
[src]
impl Debug for Ui
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<Ui> for Event
[src]
impl From<Ui> for Event
impl PartialEq<Ui> for Ui
[src]
impl PartialEq<Ui> for Ui