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§

source

type Managed: MapManagedWidget<MountedWidget>

The managed type, which can be Option<MountedWidget> or MountedWidget.

Required Methods§

source

fn manage(&self, context: &WidgetContext<'_>) -> Self::Managed

Resolve self into a MountedWidget.

Implementors§