Struct nannou::ui::input::state::mouse::ButtonMap [−][src]
pub struct ButtonMap { /* fields omitted */ }
Expand description
Stores the state of all mouse buttons.
If the mouse button is down, it stores the position of the mouse when the button was pressed
Implementations
Returns a copy of the ButtonMap relative to the given Point
The state of the left mouse button.
The state of the middle mouse button.
The state of the right mouse button.
Sets the Button
in the Down
position.
Set’s the Button
in the Up
position.
pub fn pressed(&self) -> PressedButtons<'_>ⓘNotable traits for PressedButtons<'a>
impl<'a> Iterator for PressedButtons<'a> type Item = (MouseButton, [f64; 2], Option<NodeIndex<u32>>);
pub fn pressed(&self) -> PressedButtons<'_>ⓘNotable traits for PressedButtons<'a>
impl<'a> Iterator for PressedButtons<'a> type Item = (MouseButton, [f64; 2], Option<NodeIndex<u32>>);
An iterator yielding all pressed mouse buttons along with the location at which they were originally pressed.
Trait Implementations
type Output = ButtonPosition
type Output = ButtonPosition
The returned type after indexing.
Performs the indexing (container[index]
) operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for ButtonMap
impl UnwindSafe for ButtonMap
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
pub fn vzip(self) -> V