arc_util::ui

Trait 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),