Struct three_d::GUI[][src]

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

Integration of egui, an immediate mode GUI.

Implementations

This is supported on crate feature egui-gui only.

Creates a new GUI.

This is supported on crate feature egui-gui only.

Initialises a new frame of the GUI and handles events. Construct the GUI (Add panels, widgets etc.) using the egui::CtxRef in the callback function. This function returns whether or not the GUI has changed, ie. if it consumes any events, and therefore needs to be rendered again.

This is supported on crate feature egui-gui only.

Render the GUI defined in the update function. Must be called in a render target render function, for example in the callback function of Screen::write.

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.

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

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.

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