Crate egui_winit
source ·Expand description
The library translates winit events to egui, handled copy/paste, updates the cursor, open links clicked in egui, etc.
Feature flags
accesskit— Enable platform accessibility API implementations through AccessKit.android-game-activity— Enable thegame-activitybackend via Winit on Androidandroid-native-activity— Enable thenative-activitybackend via Winit on Androidbytemuck—bytemuckenables you to cast [egui::epaint::Vertex], [egui::Vec2] etc to&[u8].clipboard(enabled by default) — Enable cut/copy/paste to OS clipboard. If disabled a clipboard will be simulated so you can still copy/paste within the egui app.links(enabled by default) — Enable opening links in a browser when an egui hyperlink is clicked.puffin— Enable profiling with thepuffincrate.serde— Allow serialization ofWindowSettingsusingserde.wayland(enabled by default) — Enables Wayland support.x11(enabled by default) — Enables compiling for x11.
Optional dependencies
document-features— Enable this when generating docs.
Re-exports
pub use accesskit_winit;pub use egui;pub use winit;
Modules
Structs
- Handles the integration between egui and a winit Window.
- Can be used to store native window settings (position and size).
Functions
- Applies what
create_winit_window_buildercouldn’t - Build and intitlaize a window.
- Calculate the
pixels_per_pointfor a given window, given the current egui zoom factor - Short and fast description of an event. Useful for logging and profiling.
- Short and fast description of an event. Useful for logging and profiling.
- Update the given viewport info with the current state of the window.