mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 05:48:08 +03:00
40 lines
813 B
C
40 lines
813 B
C
/**
|
|
* @file file_browser.h
|
|
* GUI: FileBrowser view module API
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "m-string.h"
|
|
#include <gui/view.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct FileBrowser FileBrowser;
|
|
typedef void (*FileBrowserCallback)(void* context, bool state);
|
|
|
|
FileBrowser* file_browser_alloc(string_t* result_path);
|
|
|
|
void file_browser_free(FileBrowser* browser);
|
|
|
|
View* file_browser_get_view(FileBrowser* browser);
|
|
|
|
void file_browser_configure(
|
|
FileBrowser* browser,
|
|
char* extension,
|
|
bool skip_assets,
|
|
const Icon* file_icon,
|
|
bool hide_ext);
|
|
|
|
void file_browser_start(FileBrowser* browser, string_t path);
|
|
|
|
void file_browser_stop(FileBrowser* browser);
|
|
|
|
void file_browser_set_callback(FileBrowser* browser, FileBrowserCallback callback, void* context);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|