| Crates.io | wfd |
| lib.rs | wfd |
| version | 0.1.7 |
| created_at | 2019-11-17 20:26:34.52351+00 |
| updated_at | 2021-01-24 22:11:49.784234+00 |
| description | A simple to use abstraction over the Open and Save dialogs in the Windows API |
| homepage | |
| repository | https://www.github.com/ben-wallis/wfd |
| max_upload_size | |
| id | 182068 |
| size | 29,472 |
This crate provides a simple to use abstraction over the Open and Save dialogs in the Windows API, usable under both GNU and MSVC toolchains, with minimal dependencies.
let dialog_result = wfd::open_dialog(Default::default())?;
use wfd::{DialogParams};
let params = DialogParams {
options: FOS_PICKFOLDERS,
.. Default::default()
};
let dialog_result = wfd::open_dialog(params)?;
use wfd::{DialogParams};
let params = DialogParams {
title: "Select an image to open",
file_types: vec![("JPG Files", "*.jpg;*.jpeg"), ("PNG Files", "*.png"), ("Bitmap Files", "*.bmp")],
default_extension: "jpg",
..Default::default()
};
let dialog_result = wfd::save_dialog(params)?;
Further examples can be found in src\examples