(default_name_ptr: *const u8, title_ptr: *const u8)
| 2322 | |
| 2323 | #[no_mangle] |
| 2324 | pub extern "C" fn bloom_save_file_dialog(default_name_ptr: *const u8, title_ptr: *const u8) -> *const u8 { |
| 2325 | let default_name = str_from_header(default_name_ptr); |
| 2326 | let title = str_from_header(title_ptr); |
| 2327 | let dialog = rfd::FileDialog::new() |
| 2328 | .set_title(title) |
| 2329 | .set_file_name(default_name); |
| 2330 | match dialog.save_file() { |
| 2331 | Some(path) => alloc_perry_string(&path.to_string_lossy()), |
| 2332 | None => alloc_perry_string(""), |
| 2333 | } |
| 2334 | } |
| 2335 | |
| 2336 | // Model bounds accessors. Return the axis-aligned bounding box of a loaded |
| 2337 | // model in model-local coordinates. Editors use these to size gizmos, auto- |
nothing calls this directly
no test coverage detected