Trait cushy::context::ManageWidget
source · pub trait ManageWidget {
type Managed: MapManagedWidget<MountedWidget>;
// Required method
fn manage(&self, context: &WidgetContext<'_>) -> Self::Managed;
}
Expand description
A type chat can convert to a MountedWidget
through a WidgetContext
.
Required Associated Types§
sourcetype Managed: MapManagedWidget<MountedWidget>
type Managed: MapManagedWidget<MountedWidget>
The managed type, which can be Option<MountedWidget>
or
MountedWidget
.
Required Methods§
sourcefn manage(&self, context: &WidgetContext<'_>) -> Self::Managed
fn manage(&self, context: &WidgetContext<'_>) -> Self::Managed
Resolve self
into a MountedWidget
.