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

参数:
  • 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

参数:
  • 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

参数:

obj -- pointer to a file explorer object

返回:

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

参数:

obj -- pointer to a file explorer object

返回:

pointer to the file explorer cur path

lv_obj_t *lv_file_explorer_get_header(lv_obj_t *obj)

Get file explorer head area obj

参数:

obj -- pointer to a file explorer object

返回:

pointer to the file explorer head area obj(lv_obj)

lv_obj_t *lv_file_explorer_get_quick_access_area(lv_obj_t *obj)

Get file explorer head area obj

参数:

obj -- pointer to a file explorer object

返回:

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

lv_obj_t *lv_file_explorer_get_path_label(lv_obj_t *obj)

Get file explorer path obj(label)

参数:

obj -- pointer to a file explorer object

返回:

pointer to the file explorer path obj(lv_label)

lv_obj_t *lv_file_explorer_get_places_list(lv_obj_t *obj)

Get file explorer places list obj(lv_list)

参数:

obj -- pointer to a file explorer object

返回:

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)

参数:

obj -- pointer to a file explorer object

返回:

pointer to the file explorer device list obj(lv_list)

lv_obj_t *lv_file_explorer_get_file_table(lv_obj_t *obj)

Get file explorer file list obj(lv_table)

参数:

obj -- pointer to a file explorer object

返回:

pointer to the file explorer file table obj(lv_table)

lv_file_explorer_sort_t lv_file_explorer_get_sort(const lv_obj_t *obj)

Set file_explorer sort

参数:

obj -- pointer to a file explorer object

返回:

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

参数:
  • obj -- pointer to a file explorer object

  • dir -- pointer to the path

Variables

const lv_obj_class_t lv_file_explorer_class