summaryrefslogtreecommitdiff
path: root/src/lib/elc_fileselector_common.h
blob: 9c5bd87dbd5d9eccfa0555f8f83b95d285ef2c6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
 * Defines how a file selector widget is to layout its contents
 * (file system entries).
 */
typedef enum
{
   ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
   ELM_FILESELECTOR_GRID, /**< layout as a grid */
   ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
} Elm_Fileselector_Mode;

typedef enum
{
   ELM_FILESELECTOR_SORT_BY_FILENAME_ASC = 0,
   ELM_FILESELECTOR_SORT_BY_FILENAME_DESC,
   ELM_FILESELECTOR_SORT_BY_TYPE_ASC,
   ELM_FILESELECTOR_SORT_BY_TYPE_DESC,
   ELM_FILESELECTOR_SORT_BY_SIZE_ASC,
   ELM_FILESELECTOR_SORT_BY_SIZE_DESC,
   ELM_FILESELECTOR_SORT_BY_MODIFIED_ASC,
   ELM_FILESELECTOR_SORT_BY_MODIFIED_DESC,
   ELM_FILESELECTOR_SORT_LAST /**< sentinel (helper) value, not used */
} Elm_Fileselector_Sort;

typedef Eina_Bool (*Elm_Fileselector_Filter_Func)(const char *path, /**< File path */
                                                  Eina_Bool dir, /**< A flag to show if path is a directory or not. True if the path is a directory. */
                                                  void *data /**< A user data that was given by elm_fileselector_custom_filter_append. */);