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.

Returns the internal egui context.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.