Trait arc_util::ui::Component

source ·
pub trait Component<Props> {
    // Required method
    fn render(&mut self, ui: &Ui<'_>, props: Props);
}
Expand description

Interface for UI components.

Required Methods§

source

fn render(&mut self, ui: &Ui<'_>, props: Props)

Renders the component.

Implementors§

source§

impl Component<()> for Updater

source§

impl Component<()> for Log

source§

impl<T, P> Component<P> for Window<T>
where T: Windowable<P>,

source§

impl<T, P> Component<P> for T
where T: FnMut(&Ui<'_>, P),