Loading...
Searching...
No Matches
file_browser.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <gui/view.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14typedef struct FileBrowser FileBrowser;
15typedef void (*FileBrowserCallback)(void* context);
16
17typedef bool (*FileBrowserLoadItemCallback)(
18 FuriString* path,
19 void* context,
20 uint8_t** icon,
21 FuriString* item_name);
22
23FileBrowser* file_browser_alloc(FuriString* result_path);
24
25void file_browser_free(FileBrowser* browser);
26
27View* file_browser_get_view(FileBrowser* browser);
28
29void file_browser_configure(
30 FileBrowser* browser,
31 const char* extension,
32 const char* base_path,
33 bool skip_assets,
34 bool hide_dot_files,
35 const Icon* file_icon,
36 bool hide_ext);
37
38void file_browser_start(FileBrowser* browser, FuriString* path);
39
40void file_browser_stop(FileBrowser* browser);
41
42void file_browser_set_callback(FileBrowser* browser, FileBrowserCallback callback, void* context);
43
44void file_browser_set_item_callback(
45 FileBrowser* browser,
46 FileBrowserLoadItemCallback callback,
47 void* context);
48
49#ifdef __cplusplus
50}
51#endif
Definition string.c:4
Definition icon_i.h:9
Definition view_i.h:16
GUI: View API.