Struct egui_sfml::SfEgui

source ·
pub struct SfEgui { /* private fields */ }
Expand description

Egui integration for SFML.

Implementations

Create a new SfEgui.

The size of the egui ui will be the same as window’s size.

Convert an SFML event into an egui event and add it for later use by egui.

Call this in an event polling loop for each event.

Does an egui frame with a user supplied ui function.

The f parameter is a user supplied ui function that does the desired ui

Draw the ui to a RenderWindow.

Takes an optional UserTexSource to act as a user texture source.

Returns a handle to the egui context

CtxRef can be cloned, but beware that it will be outdated after a call to do_frame

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.