pub struct Ui<'widget> { /* private fields */ }
Expand description

Manages the widgets on the display

Implementations

Queue up an event. Events are processed by the appropriate Widget::update_state method. Events may be re-processed to simplify handling for widgets. eg: a TODO: is to synthesize double and triple click events.

Assign keyboard focus to the specified widget.

Apply the current state of the widgets to the screen. This has the side effect of clearing out any unconsumed input queue. Returns true if the Ui may need to be updated again; for example, if the most recent update operation changed layout.

Convert coordinates that are relative to widget into coordinates that are relative to the screen origin (top left).

Convert coordinates that are relative to the screen origin (top left) into coordinates that are relative to the widget.

Trait Implementations

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.

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.