Function SDL_ShowFileDialogWithProperties

pub unsafe extern "C" fn SDL_ShowFileDialogWithProperties(
    type: SDL_FileDialogType,
    callback: Option<unsafe extern "C" fn(_: *mut c_void, _: *const *const i8, _: i32)>,
    userdata: *mut c_void,
    props: u32,
)
Available on crate feature dep_sdl3 only.
Expand description

Create and launch a file dialog with the specified properties.

These are the supported properties:

Note that each platform may or may not support any of the properties.

§Parameters

  • type: the type of file dialog.
  • callback: a function pointer to be invoked when the user selects a file and accepts, or cancels the dialog, or an error occurs.
  • userdata: an optional pointer to pass extra data to the callback when it will be invoked.
  • props: the properties to use.

§Thread safety

This function should be called only from the main thread. The callback may be invoked from the same thread or from a different one, depending on the OS’s constraints.

§Availability

This function is available since SDL 3.2.0.

§See also