Struct mech_gui::MechApp

source ·
pub struct MechApp { /* private fields */ }

Implementations§

Trait Implementations§

Called each time the UI needs repainting, which may be many times per second. Read more
If true a warm-up call to Self::update will be issued where ctx.memory().everything_is_visible() will be set to true. Read more
Called on shutdown, and perhaps at regular intervals. Allows you to save state. Read more
Called before an exit that can be aborted. By returning false the exit will be aborted. To continue the exit return true. Read more
Called once on shutdown, after Self::save. Read more
Time between automatic calls to Self::save
The size limit of the web app canvas. Read more
Background color for the app, e.g. what is sent to gl.clearColor. This is the background of your windows if you don’t set a central panel.
Controls whether or not the native window position and size will be persisted (only if the “persistence” feature is enabled).
Controls whether or not the egui memory (window positions etc) will be persisted (only if the “persistence” feature is enabled).

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

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
Should always be Self
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.
Get the TypeId of this object.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more