MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / mouse_button_label

Function mouse_button_label

src/controls.rs:453–462  ·  view source on GitHub ↗
(button: mouse::Button)

Source from the content-addressed store, hash-verified

451}
452
453fn mouse_button_label(button: mouse::Button) -> String {
454 match button {
455 mouse::Button::Left => "Left".to_owned(),
456 mouse::Button::Right => "Right".to_owned(),
457 mouse::Button::Middle => "Middle".to_owned(),
458 mouse::Button::Back => "Back".to_owned(),
459 mouse::Button::Forward => "Forward".to_owned(),
460 mouse::Button::Other(number) => format!("Mouse {number}"),
461 }
462}
463
464fn keyboard_key_label(key: &keyboard::Key) -> String {
465 match key {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected