Trait OpenSaveController

Source
pub trait OpenSaveController {
    // Provided methods
    fn user_entered_filename(&self, _filename: &str, _confirmed: bool) { ... }
    fn panel_selection_did_change(&self) { ... }
    fn did_change_to_directory(&self, _url: &str) { ... }
    fn will_expand(&self, _expanding: bool) { ... }
    fn should_enable_url(&self, _url: &str) -> bool { ... }
}

Provided Methods§

Source

fn user_entered_filename(&self, _filename: &str, _confirmed: bool)

Called when the user has entered a filename (typically, during saving). confirmed indicates whether or not they hit the save button.

Source

fn panel_selection_did_change(&self)

Notifies you that the panel selection changed.

Source

fn did_change_to_directory(&self, _url: &str)

Notifies you that the user changed directories.

Source

fn will_expand(&self, _expanding: bool)

Notifies you that the Save panel is about to expand or collapse because the user clicked the disclosure triangle that displays or hides the file browser.

Source

fn should_enable_url(&self, _url: &str) -> bool

Determine whether the specified URL should be enabled in the Open panel.

Implementors§