Trait rin_window::events::MouseButtonEvents [−][src]
pub trait MouseButtonEvents<'a> { fn over(self, area: Rect<f64>) -> Stream<'a, (Pnt2<f64>, MouseButton)>; fn is_over(self, area: Rect<f64>) -> Stream<'a, bool>; }
Operations over mouse pressed and release
Required methods
fn over(self, area: Rect<f64>) -> Stream<'a, (Pnt2<f64>, MouseButton)>
[src]
Filters out the original event if it’s not over a certain rectangle
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
Implementors
Loading content...