Trait gui::Widget

source ·
pub trait Widget: Handleable + Renderable + Object + Debug + 'static {
    fn type_id(&self) -> TypeId;
}
Expand description

A widget as used by a Ui.

In addition to taking care of Id management and parent-child relationships, the Ui is responsible for dispatching events to widgets and rendering them. Hence, a widget usable for the Ui needs to implement Handleable, Renderable, and Object.

Required Methods

Get the TypeId of self.

Implementations

Check if the widget is of type T.

Downcast the widget reference to type T.

Downcast the widget reference to type T.

Implementors