Struct egui_winit_platform::Platform [−][src]
pub struct Platform { /* fields omitted */ }
Expand description
Provides the integration between egui and winit.
Implementations
Creates a new Platform
.
Handles the given winit event and updates the egui context. Should be called before starting a new frame with start_frame()
.
Returns true
if egui should handle the event exclusively. Check this to
avoid unexpected interactions, e.g. a mouse click registering “behind” the UI.
Updates the internal time for egui used for animations. elapsed_seconds
should be the seconds since some point in time (for example application start).
Starts a new frame by providing a new Ui
instance to write into.
Ends the frame. Returns what has happened as Output
and gives you the draw instructions as PaintJobs
.
Auto Trait Implementations
impl !RefUnwindSafe for Platform
impl !UnwindSafe for Platform