Enum conrod::input::state::mouse::ButtonPosition [] [src]

pub enum ButtonPosition {
    Up,
    Down(PointOption<Id>),
}

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 Point over the widget at the given widget::Id.

Methods

impl ButtonPosition
[src]

[src]

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

[src]

Is the ButtonPosition down.

[src]

Is the ButtonPosition up.

[src]

Returns the position at which the button was pressed along with the widget that was under the mouse at the time of pressing if the position is Down.

[src]

Returns the position at which the button was pressed if it's down.

Trait Implementations

impl Copy for ButtonPosition
[src]

impl Clone for ButtonPosition
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ButtonPosition
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for ButtonPosition
[src]

[src]

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

[src]

This method tests for !=.