[][src]Enum amethyst_ui::UiEventType

pub enum UiEventType {
    Click,
    ClickStart,
    ClickStop,
    HoverStart,
    HoverStop,
    Dragging {
        element_offset: Vector2<f32>,
    },
    Dropped {
        dropped_on: Entity,
    },
    ValueChange,
    ValueCommit,
    Focus,
    Blur,
}

The type of ui event. Click happens if you start and stop clicking on the same ui element.

Variants

Click

When an element is clicked normally. Includes touch events.

ClickStart

When the element starts being clicked (On left mouse down). Includes touch events.

ClickStop

When the element stops being clicked (On left mouse up). Includes touch events.

HoverStart

When the cursor gets over an element.

HoverStop

When the cursor stops being over an element.

Dragging

When dragging a Draggable Ui element.

Fields of Dragging

element_offset: Vector2<f32>

The position of the mouse relative to the center of the transform when the drag started.

Dropped

When stopping to drag a Draggable Ui element.

Fields of Dropped

dropped_on: Entity

The entity on which the dragged object was dropped.

ValueChange

When the value of a UiText element has been changed by user input.

ValueCommit

When the value of a UiText element has been committed by user action.

Focus

When an editable UiText element has gained focus.

Blur

When an editable UiText element has lost focus.

Trait Implementations

impl Clone for UiEventType[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<UiEventType> for UiEventType[src]

impl Debug for UiEventType[src]

Auto Trait Implementations

impl Unpin for UiEventType

impl Sync for UiEventType

impl Send for UiEventType

impl UnwindSafe for UiEventType

impl RefUnwindSafe for UiEventType

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 
[src]

impl<T> Erased for T[src]

impl<T> Clone for T where
    T: Clone
[src]

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

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

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]