MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / bloom_save_file_dialog

Function bloom_save_file_dialog

native/macos/src/lib.rs:2324–2334  ·  view source on GitHub ↗
(default_name_ptr: *const u8, title_ptr: *const u8)

Source from the content-addressed store, hash-verified

2322
2323#[no_mangle]
2324pub 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-

Callers

nothing calls this directly

Calls 2

str_from_headerFunction · 0.85
alloc_perry_stringFunction · 0.50

Tested by

no test coverage detected