Struct gui::Ui

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

A Ui is a container for related widgets.

Implementations

Create a new Ui instance containing one widget that acts as the root widget.

Render the Ui with the given Renderer.

Handle an event.

This function performs the initial determination of which widget is supposed to handle the given event and then passes it down to the actual event handler.

Trait Implementations

Add a widget to the Ui.

Retrieve an iterator over the children. Iteration happens in z-order, from highest to lowest.

Retrieve the Id of the root widget.

Retrieve the parent of the given widget.

Show a widget, i.e., set its and its parents’ visibility flag.

Hide a widget, i.e., unset its visibility flag.

Check whether a widget has its visibility flag set.

Check whether a widget is actually being displayed.

Retrieve the currently focused widget.

Focus a widget.

Check whether the given widget is focused.

Install or remove an event hook handler.

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

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.