pub fn resize_edge_to_winit(edge: ResizeEdge) -> ResizeDirectionExpand description
Maps runtime resize edges to winit [ResizeDirection].
All eight cardinal and diagonal variants map one-to-one; there is no unsupported or fallback value.
ยงExamples
use ailloli_ui_runtime::input::ResizeEdge;
use winit::window::ResizeDirection;
let direction =
ailloli_ui_winit::window_chrome_resize::resize_edge_to_winit(ResizeEdge::NW);
assert!(matches!(direction, ResizeDirection::NorthWest));