Trait rin::window::events::MouseButtonEvents[][src]

pub trait MouseButtonEvents<'a> {
    pub fn over(
        self,
        area: Rect<f64>
    ) -> Stream<'a, (Point<f64, U2>, MouseButton)>;
pub fn is_over(self, area: Rect<f64>) -> Stream<'a, bool>; }

Operations over mouse pressed and release

Required methods

pub fn over(self, area: Rect<f64>) -> Stream<'a, (Point<f64, U2>, MouseButton)>[src]

Filters out the original event if it’s not over a certain rectangle

pub fn is_over(self, area: Rect<f64>) -> Stream<'a, bool>[src]

Returns a stream that will return true if the original event happens over the rectangle and false if it happens outside

Loading content...

Implementors

impl<'a, S> MouseButtonEvents<'a> for S where
    S: StreamExt<'a, (Point<f64, U2>, MouseButton)>, 
[src]

Loading content...