Struct nannou_egui::Egui[][src]

pub struct Egui { /* fields omitted */ }
Expand description

All egui-related state for a single window.

Includes the context, a renderer, and an input tracker.

For multi-window user interfaces, you will need to create an instance of this type per-window.

Implementations

Construct the Egui from its parts.

The given device must be the same used to create the queue to which the Egui’s render commands will be submitted.

The target_format, target_msaa_samples, window_scale_factor and window_size_pixels must match the window to which the UI will be drawn.

The context should have the desired initial styling and fonts already set.

Construct a Egui associated with the given window.

Access to the inner egui::CtxRef.

Access to the currently tracked input state.

Handles a raw window event, tracking all input and events relevant to the UI as necessary.

Set the elapsed time since the Egui app started running.

Begin describing a UI frame.

Draws the contents of the inner context to the given frame.

Provide access to an epi::Frame within the given function.

This method is primarily used for apps based on the epi interface.

The same as with_epi_frame, but calls begin_frame before calling the given function, and then calls end_frame before returning.

Auto Trait Implementations

Blanket Implementations

Convert the source color to the destination color using the specified method Read more

Convert the source color to the destination color using the bradford method by default Read more

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert into T with values clamped to the color defined bounds Read more

Convert into T. The resulting color might be invalid in its color space Read more

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. 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.