|
Muteki
EABI code execution on Besta® RTOS devices.
|
Functions related to the file picker modal. More...
#include "../../common.h"Go to the source code of this file.
Data Structures | |
| struct | ui_filepicker_context_s |
| The file picker context. More... | |
Macros | |
| #define | FILEPICKER_CONTEXT_OUTPUT_ALLOC(calloc_impl, entries, is_utf16) |
| Allocate output buffer for ui_filepicker_context_t. | |
| #define | FILEPICKER_CONTEXT_OUTPUT_MAX_LFN 260 |
| Max LFN path size for file picker. | |
Typedefs | |
| typedef struct ui_filepicker_context_s | ui_filepicker_context_t |
| The file picker context type. | |
Enumerations | |
| enum | ui_filepicker_flag_e { FILEPICKER_ALLOW_MULTIPLE =0x200 , FILEPICKER_USE_MB =0x40000 } |
| Known file picker flags. More... | |
Functions | |
| bool | _GetOpenFileName (ui_filepicker_context_t *ctx) |
| Show a file picker in open mode. | |
| bool | _GetSaveFileName (ui_filepicker_context_t *ctx) |
| Show a file picker in save mode. | |
| int | _GetNextFileName (ui_filepicker_context_t *ctx, UTF16 *out) |
| Read the next path from a context struct. | |
Functions related to the file picker modal.
| #define FILEPICKER_CONTEXT_OUTPUT_ALLOC | ( | calloc_impl, | |
| entries, | |||
| is_utf16 ) |
Allocate output buffer for ui_filepicker_context_t.
| calloc_impl | Implementation of calloc(). |
| entries | Maximum number of entries allowed. Must be the same as ui_filepicker_context_t::npaths. |
| is_utf16 | true if the buffer should be UTF16 type. Set to false if the flag FILEPICKER_USE_MB is set. |
| enum ui_filepicker_flag_e |
Known file picker flags.
| Enumerator | |
|---|---|
| FILEPICKER_ALLOW_MULTIPLE | Allow multiple files. |
| FILEPICKER_USE_MB | Use multi-byte strings in the current locale's encoding instead of UTF16. |
|
extern |
Read the next path from a context struct.
| ctx | The file picker context. | |
| [out] | out | UTF16 string. Recommended to be at least 260 CUs long. |
| 0 | The operation was completed successfully. |
| 1 | The operation failed with error. |
|
extern |
Show a file picker in open mode.
| ctx | The file picker context. |
|
extern |
Show a file picker in save mode.
| ctx | The file picker context. |