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

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

Operations over mouse moved

Required methods

pub fn over(self, area: Rect<f64>) -> Stream<'a, Point<f64, U2>>[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> MouseMovedEvents<'a> for S where
    S: StreamExt<'a, Point<f64, U2>>, 
[src]

Loading content...