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

Function key_event

src/plot_state.rs:1919–1929  ·  view source on GitHub ↗
(key: keyboard::Key, code: keyboard::key::Code)

Source from the content-addressed store, hash-verified

1917 Event::ButtonPressed(mouse::Button::Left),
1918 mouse::Cursor::Available(Point::new(50.0, 50.0)),
1919 &widget,
1920 &mut hover_pick,
1921 &mut drag_event,
1922 );
1923 state.handle_mouse_event(
1924 Event::ButtonReleased(mouse::Button::Left),
1925 mouse::Cursor::Available(Point::new(50.0, 50.0)),
1926 &widget,
1927 &mut hover_pick,
1928 &mut drag_event,
1929 );
1930 }
1931
1932 assert_eq!(state.camera.position, DVec2::new(20.0, 40.0));

Callers 2

arrow_key_eventFunction · 0.85

Calls

no outgoing calls

Tested by 1