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-activity
backend via Winit on Androidandroid-native-activity
— Enable thenative-activity
backend via Winit on Androidbytemuck
—bytemuck
enables you to castegui::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.serde
— Allow serialization ofWindowSettings
usingserde
.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§
- Event
Response - State
- Handles the integration between egui and a winit Window.
- Window
Settings - Can be used to store native window settings (position and size).
Enums§
Functions§
- apply_
viewport_ builder_ to_ window - Applies what
create_winit_window_builder
couldn’t - create_
window - Build and intitlaize a window.
- create_
winit_ window_ attributes - inner_
rect_ in_ points - outer_
rect_ in_ points - pixels_
per_ point - Calculate the
pixels_per_point
for a given window, given the current egui zoom factor - process_
viewport_ commands - screen_
size_ in_ pixels - short_
device_ event_ description - Short and fast description of a device event. Useful for logging and profiling.
- short_
window_ event_ description - Short and fast description of a window event. Useful for logging and profiling.
- update_
viewport_ info - Update the given viewport info with the current state of the window.