Trait rin::prelude::Events[][src]

pub trait Events<'a> {
    pub fn keys(self) -> Stream<'a, KeyEvent>;
pub fn keys_partition(self) -> (Stream<'a, KeyEvent>, Stream<'a, Event>);
pub fn mouse(self) -> Stream<'a, MouseEvent>;
pub fn mouse_partition(self) -> (Stream<'a, MouseEvent>, Stream<'a, Event>);
pub fn window(self) -> Stream<'a, WindowEvent>;
pub fn window_partition(
        self
    ) -> (Stream<'a, WindowEvent>, Stream<'a, Event>);
pub fn update(self) -> Stream<'a, f64>;
pub fn update_partition(self) -> (Stream<'a, f64>, Stream<'a, Event>);
pub fn dropped(self) -> Stream<'a, Vec<PathBuf, Global>>;
pub fn dropped_partition(
        self
    ) -> (Stream<'a, Vec<PathBuf, Global>>, Stream<'a, Event>);
pub fn with_viewport(
        self,
        viewport: Property<'a, Rect<i32>>
    ) -> Stream<'a, Event>; }

Trait to transform a general window event into specific mouse, key…

Required methods

pub fn keys(self) -> Stream<'a, KeyEvent>[src]

Selects only key events

pub fn keys_partition(self) -> (Stream<'a, KeyEvent>, Stream<'a, Event>)[src]

Partitions events into keys and non keys events.

pub fn mouse(self) -> Stream<'a, MouseEvent>[src]

Selects only mouse events

pub fn mouse_partition(self) -> (Stream<'a, MouseEvent>, Stream<'a, Event>)[src]

Selects only mouse events and returns the rest through the second stream

pub fn window(self) -> Stream<'a, WindowEvent>[src]

Selects only window events

pub fn window_partition(self) -> (Stream<'a, WindowEvent>, Stream<'a, Event>)[src]

Selects only window events and returns the rest through the second stream

pub fn update(self) -> Stream<'a, f64>[src]

Selects only the update event

pub fn update_partition(self) -> (Stream<'a, f64>, Stream<'a, Event>)[src]

Selects only the update event and returns the rest through the second stream

pub fn dropped(self) -> Stream<'a, Vec<PathBuf, Global>>[src]

Selects only the dropped event

pub fn dropped_partition(
    self
) -> (Stream<'a, Vec<PathBuf, Global>>, Stream<'a, Event>)
[src]

Selects only the dropped event and returns the rest through the second stream

pub fn with_viewport(
    self,
    viewport: Property<'a, Rect<i32>>
) -> Stream<'a, Event>
[src]

Transforms events into events inside a viewport

Only affects mouse events

Loading content...

Implementors

impl<'a, S> Events<'a> for S where
    S: StreamExt<'a, Event>, 
[src]

Loading content...