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
.