Trait MatchEvent

Source
pub trait MatchEvent {
Show 29 methods // Provided methods fn handle_startup(&mut self, _cx: &mut Cx) { ... } fn handle_shutdown(&mut self, _cx: &mut Cx) { ... } fn handle_foreground(&mut self, _cx: &mut Cx) { ... } fn handle_background(&mut self, _cx: &mut Cx) { ... } fn handle_pause(&mut self, _cx: &mut Cx) { ... } fn handle_resume(&mut self, _cx: &mut Cx) { ... } fn handle_app_got_focus(&mut self, _cx: &mut Cx) { ... } fn handle_app_lost_focus(&mut self, _cx: &mut Cx) { ... } fn handle_next_frame(&mut self, _cx: &mut Cx, _e: &NextFrameEvent) { ... } fn handle_action(&mut self, _cx: &mut Cx, _e: &Box<dyn ActionTrait>) { ... } fn handle_actions(&mut self, cx: &mut Cx, actions: &[Box<dyn ActionTrait>]) { ... } fn handle_signal(&mut self, _cx: &mut Cx) { ... } fn handle_audio_devices(&mut self, _cx: &mut Cx, _e: &AudioDevicesEvent) { ... } fn handle_midi_ports(&mut self, _cx: &mut Cx, _e: &MidiPortsEvent) { ... } fn handle_video_inputs(&mut self, _cx: &mut Cx, _e: &VideoInputsEvent) { ... } fn handle_http_response( &mut self, _cx: &mut Cx, _request_id: LiveId, _response: &HttpResponse, ) { ... } fn handle_http_request_error( &mut self, _cx: &mut Cx, _request_id: LiveId, _err: &HttpError, ) { ... } fn handle_http_progress( &mut self, _cx: &mut Cx, _request_id: LiveId, _progress: &HttpProgress, ) { ... } fn handle_http_stream( &mut self, _cx: &mut Cx, _request_id: LiveId, _data: &HttpResponse, ) { ... } fn handle_http_stream_complete( &mut self, _cx: &mut Cx, _request_id: LiveId, _data: &HttpResponse, ) { ... } fn handle_network_responses( &mut self, cx: &mut Cx, e: &Vec<NetworkResponseItem>, ) { ... } fn handle_draw(&mut self, _cx: &mut Cx, _e: &DrawEvent) { ... } fn handle_timer(&mut self, _cx: &mut Cx, _e: &TimerEvent) { ... } fn handle_draw_2d(&mut self, _cx: &mut Cx2d<'_, '_>) { ... } fn handle_key_down(&mut self, _cx: &mut Cx, _e: &KeyEvent) { ... } fn handle_key_up(&mut self, _cx: &mut Cx, _e: &KeyEvent) { ... } fn handle_back_pressed(&mut self, _cx: &mut Cx) -> bool { ... } fn match_event(&mut self, cx: &mut Cx, event: &Event) { ... } fn match_event_with_draw_2d( &mut self, cx: &mut Cx, event: &Event, ) -> Result<(), ()> { ... }
}

Provided Methods§

Source

fn handle_startup(&mut self, _cx: &mut Cx)

Source

fn handle_shutdown(&mut self, _cx: &mut Cx)

Source

fn handle_foreground(&mut self, _cx: &mut Cx)

Source

fn handle_background(&mut self, _cx: &mut Cx)

Source

fn handle_pause(&mut self, _cx: &mut Cx)

Source

fn handle_resume(&mut self, _cx: &mut Cx)

Source

fn handle_app_got_focus(&mut self, _cx: &mut Cx)

Source

fn handle_app_lost_focus(&mut self, _cx: &mut Cx)

Source

fn handle_next_frame(&mut self, _cx: &mut Cx, _e: &NextFrameEvent)

Source

fn handle_action(&mut self, _cx: &mut Cx, _e: &Box<dyn ActionTrait>)

Source

fn handle_actions(&mut self, cx: &mut Cx, actions: &[Box<dyn ActionTrait>])

Source

fn handle_signal(&mut self, _cx: &mut Cx)

Source

fn handle_audio_devices(&mut self, _cx: &mut Cx, _e: &AudioDevicesEvent)

Source

fn handle_midi_ports(&mut self, _cx: &mut Cx, _e: &MidiPortsEvent)

Source

fn handle_video_inputs(&mut self, _cx: &mut Cx, _e: &VideoInputsEvent)

Source

fn handle_http_response( &mut self, _cx: &mut Cx, _request_id: LiveId, _response: &HttpResponse, )

Source

fn handle_http_request_error( &mut self, _cx: &mut Cx, _request_id: LiveId, _err: &HttpError, )

Source

fn handle_http_progress( &mut self, _cx: &mut Cx, _request_id: LiveId, _progress: &HttpProgress, )

Source

fn handle_http_stream( &mut self, _cx: &mut Cx, _request_id: LiveId, _data: &HttpResponse, )

Source

fn handle_http_stream_complete( &mut self, _cx: &mut Cx, _request_id: LiveId, _data: &HttpResponse, )

Source

fn handle_network_responses( &mut self, cx: &mut Cx, e: &Vec<NetworkResponseItem>, )

Source

fn handle_draw(&mut self, _cx: &mut Cx, _e: &DrawEvent)

Source

fn handle_timer(&mut self, _cx: &mut Cx, _e: &TimerEvent)

Source

fn handle_draw_2d(&mut self, _cx: &mut Cx2d<'_, '_>)

Source

fn handle_key_down(&mut self, _cx: &mut Cx, _e: &KeyEvent)

Source

fn handle_key_up(&mut self, _cx: &mut Cx, _e: &KeyEvent)

Source

fn handle_back_pressed(&mut self, _cx: &mut Cx) -> bool

Handles the Event::BackPressed event.

This will only be called if this event was not already handled.

Returns true if the event was handled, false otherwise. Returning true will mark this as handled, meaning that no other widgets will receive this event.

Source

fn match_event(&mut self, cx: &mut Cx, event: &Event)

Source

fn match_event_with_draw_2d( &mut self, cx: &mut Cx, event: &Event, ) -> Result<(), ()>

Implementors§