Trait PreviewBuilder

Source
pub trait PreviewBuilder<A> {
    // Required methods
    fn width(&self) -> f32;
    fn do_ui(&mut self, ui: &Ui<A>, chooser: &FileChooser);
}
Expand description

A trait to build the “preview” section of the UI.

Required Methods§

Source

fn width(&self) -> f32

The width reserved for the preview. Return 0.0 for no preview.

Source

fn do_ui(&mut self, ui: &Ui<A>, chooser: &FileChooser)

Builds the UI for the preview.

Implementors§