pub trait Behavior: 'static + Debug + Send + Sync {
type Event: Debug + Send + Sync;
type Content: Content<Self>;
type Widgets: Key;
fn build_content(
&mut self,
builder: <Self::Content as Content<Self>>::Builder,
events: &EventMapper<Self>
) -> StyledWidget<Self::Content>;
fn receive_event(
component: &mut Component<Self>,
event: Self::Event,
context: &Context<Component<Self>>
);
fn classes() -> Option<Classes> { ... }
fn initialize(
component: &mut Component<Self>,
context: &Context<Component<Self>>
) { ... }
}