Skip to main content

Widget

Trait Widget 

Source
pub trait Widget {
    // Required method
    fn render(&mut self, ui: &mut dyn UiCtx);
}
Expand description

A UI widget that can render itself into a UiCtx.

Required Methods§

Source

fn render(&mut self, ui: &mut dyn UiCtx)

Render the widget into ui.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§