Manual Reference Pages - AL_CREATE_NATIVE_FILE_DIALOG (3)
al_create_native_file_dialog - Allegro 5 API
char const *initial_path,
char const *title,
char const *patterns,
Creates a new native file dialog.
You should only have one such dialog opened at a time.
Possible flags for the [aq]flags[aq] parameter are:
initial_path: The initial search path and filename.
Can be NULL.
To start with a blank file name the string should end with a directory
separator (this should be the common case).
title: Title of the dialog.
patterns: A list of semi-colon separated patterns to match.
You should always include the pattern "*.*" as usually the MIME type and
not the file pattern is relevant.
If no file patterns are supported by the native dialog, this parameter
mode: 0, or a combination of the flags below.
If supported by the native dialog, it will not allow entering new names,
but just allow existing files to be selected.
Else it is ignored.
If the native dialog system has a different dialog for saving (for
example one which allows creating new directories), it is used.
If there is support for a separate dialog to select a folder instead of
a file, it will be used.
If a different dialog is available for selecting pictures, it is used.
If the platform supports it, also hidden files will be shown.
If supported, allow selecting multiple files.
A handle to the dialog which you can pass to
al_show_native_file_dialog(3) to display it, and from which you then can
query the results.
When you are done, call al_destroy_native_file_dialog(3) on it.
If a dialog window could not be created then this function returns NULL.
|Allegro reference manual ||AL_CREATE_NATIVE_FILE_DIALOG (3) || |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.