Trait gpui2::Component

source ·
pub trait Component: 'static {
    type Rendered: RenderOnce;

    // Required method
    fn render(self, cx: &mut WindowContext<'_>) -> Self::Rendered;
}

Required Associated Types§

Required Methods§

source

fn render(self, cx: &mut WindowContext<'_>) -> Self::Rendered

Implementors§