Struct epi::Frame[][src]

pub struct Frame<'a>(_);
Expand description

Represents the surroundings of your app.

It provides methods to inspect the surroundings (are we on the web?), allocate textures, and change settings (e.g. window size).

Implementations

True if you are in a web environment.

Information about the integration.

A way to allocate textures.

Signal the app to stop/exit/quit the app (only works for native apps, not web apps). The framework will not quit immediately, but at the end of the this frame.

Set the desired inner size of the window (in egui points).

Set the desired title of the window.

Set whether to show window decorations (i.e. a frame around you app). If false it will be difficult to move and resize the app.

When called, the native window will follow the movement of the cursor while the primary mouse button is down.

Does not work on the web, and works badly on Mac.

If you need to request a repaint from another thread, clone this and send it to that other thread.

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 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.