FileDialogModal

Trait FileDialogModal 

Source
pub trait FileDialogModal {
    // Required method
    fn update(&mut self, config: &FileDialogConfig, ui: &mut Ui) -> ModalState;

    // Provided method
    fn update_keybindings(&mut self, _config: &FileDialogConfig, _ctx: &Context) { ... }
}

Required Methods§

Source

fn update(&mut self, config: &FileDialogConfig, ui: &mut Ui) -> ModalState

Main update method of the modal. Should be called every time the modal should be visible.

Provided Methods§

Source

fn update_keybindings(&mut self, _config: &FileDialogConfig, _ctx: &Context)

Updates the configured keybindings for the modal window.

Trait Implementations§

Source§

impl Debug for dyn FileDialogModal + Send + Sync

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§