Struct fui_app::FileDialog
source · pub struct FileDialog {
pub title: Option<String>,
pub initial_path: Option<PathBuf>,
pub filters: Vec<Filter>,
}
Fields§
§title: Option<String>
§initial_path: Option<PathBuf>
§filters: Vec<Filter>
Implementations§
source§impl FileDialog
impl FileDialog
pub fn new() -> Self
pub fn with_title(self, title: &str) -> Self
pub fn with_initial_path<P: AsRef<Path>>(self, dir: P) -> Self
pub fn with_filter(self, name: &str, filters: &[&str]) -> Self
pub async fn pick_file(self) -> Option<PathBuf>
pub async fn pick_files(self) -> Vec<PathBuf>
pub async fn pick_folder(self) -> Option<PathBuf>
pub async fn pick_save_file(self) -> Option<PathBuf>
Trait Implementations§
source§impl Default for FileDialog
impl Default for FileDialog
source§fn default() -> FileDialog
fn default() -> FileDialog
Returns the “default value” for a type. Read more