lv_file_explorer.h

Enums

enum lv_file_explorer_sort_t

Values:

enumerator LV_EXPLORER_SORT_NONE
enumerator LV_EXPLORER_SORT_KIND
enum lv_file_explorer_dir_t

Values:

enumerator LV_EXPLORER_HOME_DIR
enumerator LV_EXPLORER_MUSIC_DIR
enumerator LV_EXPLORER_PICTURES_DIR
enumerator LV_EXPLORER_VIDEO_DIR
enumerator LV_EXPLORER_DOCS_DIR
enumerator LV_EXPLORER_FS_DIR

Functions

lv_obj_t *lv_file_explorer_create(lv_obj_t *parent)
void lv_file_explorer_set_quick_access_path(lv_obj_t *obj, lv_file_explorer_dir_t dir, const char *path)

Set file_explorer

Parameters:
  • obj – pointer to a label object

  • dir – the dir from 'lv_file_explorer_dir_t' enum.

  • path – path

void lv_file_explorer_set_sort(lv_obj_t *obj, lv_file_explorer_sort_t sort)

Set file_explorer sort

Parameters:
  • obj – pointer to a file explorer object

  • sort – the sort from 'lv_file_explorer_sort_t' enum.

const char *lv_file_explorer_get_selected_file_name(const lv_obj_t *obj)

Get file explorer Selected file

Parameters:

obj – pointer to a file explorer object

Returns:

pointer to the file explorer selected file name

const char *lv_file_explorer_get_current_path(const lv_obj_t *obj)

Get file explorer cur path

Parameters:

obj – pointer to a file explorer object

Returns:

pointer to the file explorer cur path

lv_obj_t *lv_file_explorer_get_file_table(lv_obj_t *obj)

Get file explorer file list obj(lv_table)

Parameters:

obj – pointer to a file explorer object

Returns:

pointer to the file explorer file table obj(lv_table)

lv_obj_t *lv_file_explorer_get_header(lv_obj_t *obj)

Get file explorer head area obj

Parameters:

obj – pointer to a file explorer object

Returns:

pointer to the file explorer head area obj(lv_obj)

lv_obj_t *lv_file_explorer_get_path_label(lv_obj_t *obj)

Get file explorer path obj(label)

Parameters:

obj – pointer to a file explorer object

Returns:

pointer to the file explorer path obj(lv_label)

lv_obj_t *lv_file_explorer_get_quick_access_area(lv_obj_t *obj)

Get file explorer head area obj

Parameters:

obj – pointer to a file explorer object

Returns:

pointer to the file explorer quick access area obj(lv_obj)

lv_obj_t *lv_file_explorer_get_places_list(lv_obj_t *obj)

Get file explorer places list obj(lv_list)

Parameters:

obj – pointer to a file explorer object

Returns:

pointer to the file explorer places list obj(lv_list)

lv_obj_t *lv_file_explorer_get_device_list(lv_obj_t *obj)

Get file explorer device list obj(lv_list)

Parameters:

obj – pointer to a file explorer object

Returns:

pointer to the file explorer device list obj(lv_list)

lv_file_explorer_sort_t lv_file_explorer_get_sort(const lv_obj_t *obj)

Set file_explorer sort

Parameters:

obj – pointer to a file explorer object

Returns:

the current mode from 'lv_file_explorer_sort_t'

void lv_file_explorer_open_dir(lv_obj_t *obj, const char *dir)

Open a specified path

Parameters:
  • obj – pointer to a file explorer object

  • dir – pointer to the path

Variables

const lv_obj_class_t lv_file_explorer_class