Module helpers

Source
Expand description

Helpers for converting Bevy types into Egui ones and vice versa.

Functionsยง

bevy_to_egui_key
Matches the implementation of https://github.com/emilk/egui/blob/68b3ef7f6badfe893d3bbb1f791b481069d807d9/crates/egui-winit/src/lib.rs#L1005.
bevy_to_egui_physical_key
Matches the implementation of https://github.com/emilk/egui/blob/68b3ef7f6badfe893d3bbb1f791b481069d807d9/crates/egui-winit/src/lib.rs#L1080.
egui_pos2_into_vec2
Converts egui::Pos2 into bevy_math::Vec2.
egui_rect_into_rect
Converts egui::Rect into bevy_math::Rect.
egui_to_winit_cursor_icon
Translates egui::CursorIcon into bevy_window::SystemCursorIcon.
egui_vec2_into_vec2
Converts egui::Vec2 into bevy_math::Vec2.
rect_into_egui_rect
Converts bevy_math::Rect into egui::Rect.
vec2_into_egui_pos2
Converts bevy_math::Vec2 into egui::Pos2.
vec2_into_egui_vec2
Converts bevy_math::Vec2 into egui::Vec2.