MCPcopy Create free account
hub / github.com/audulus/rui / process

Method process

src/context.rs:323–338  ·  view source on GitHub ↗

Process a UI event.

(&mut self, view: &impl View, event: &Event)

Source from the content-addressed store, hash-verified

321
322 /// Process a UI event.
323 pub fn process(&mut self, view: &impl View, event: &Event) {
324 let mut actions = vec![];
325 let mut path = vec![0];
326 view.process(
327 &event.offset(-self.root_offset),
328 &mut path,
329 self,
330 &mut actions,
331 );
332
333 for action in actions {
334 if !action.is::<()>() {
335 log::debug!("unhandled action: {:?}", (*action).type_id());
336 }
337 }
338 }
339
340 /// Get menu commands.
341 pub fn commands(&mut self, view: &impl View, cmds: &mut Vec<CommandInfo>) {

Callers 5

process_eventFunction · 0.45
window_eventMethod · 0.45
send_eventMethod · 0.45
test_tap_actionFunction · 0.45
updateMethod · 0.45

Calls 1

offsetMethod · 0.45

Tested by 2

send_eventMethod · 0.36
test_tap_actionFunction · 0.36