Trait RenderableDialog

Source
trait RenderableDialog:
    Send
    + Sync
    + 'static {
    // Required method
    fn render(&mut self, context: &mut Context) -> bool;
}
Expand description

A small trait to define that a dialog struct can be rendered.

Required Methods§

Source

fn render(&mut self, context: &mut Context) -> bool

Called once per render, the struct should render itself as a window in the given context.

If the returned boolean is false, the dialog will automatically be removed from the render queue.

Implementors§