Enum nannou::state::mouse::ButtonPosition[][src]

pub enum ButtonPosition<S = DefaultScalar> {
    Up,
    Down(Point2<S>),
}

Whether the button is up or down.

Variants

The button is up (i.e. pressed).

The button is down and was originally pressed down at the given Point2.

Methods

impl<S> ButtonPosition<S> where
    S: BaseFloat
[src]

If the mouse button is down, return a new one with position relative to the given xy.

Is the ButtonPosition down.

Is the ButtonPosition up.

Returns the position at which the button was pressed.

Trait Implementations

impl<S: Copy> Copy for ButtonPosition<S>
[src]

impl<S: Clone> Clone for ButtonPosition<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for ButtonPosition<S>
[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for ButtonPosition<S>
[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<S> Send for ButtonPosition<S> where
    S: Send

impl<S> Sync for ButtonPosition<S> where
    S: Sync