2007-05-03 22:43:13 -07:00
|
|
|
#ifdef E_TYPEDEFS
|
|
|
|
|
|
|
|
typedef struct _E_Fm2_Custom_File E_Fm2_Custom_File;
|
2009-02-15 15:09:09 -08:00
|
|
|
typedef struct _E_Fm2_Custom_Dir E_Fm2_Custom_Dir;
|
2007-05-03 22:43:13 -07:00
|
|
|
|
|
|
|
#else
|
|
|
|
#ifndef E_FM_CUSTOM_H
|
|
|
|
#define E_FM_CUSTOM_H
|
|
|
|
|
2009-02-15 15:09:09 -08:00
|
|
|
struct _E_Fm2_Custom_Dir
|
|
|
|
{
|
|
|
|
struct {
|
|
|
|
double x, y;
|
|
|
|
} pos;
|
|
|
|
struct {
|
|
|
|
signed short icon_size; /* -1 = unset */
|
|
|
|
signed char view_mode; /* -1 = unset */
|
|
|
|
unsigned char order_file;
|
|
|
|
unsigned char show_hidden_files;
|
|
|
|
unsigned char in_use;
|
|
|
|
} prop;
|
|
|
|
};
|
|
|
|
|
2007-05-03 22:43:13 -07:00
|
|
|
struct _E_Fm2_Custom_File
|
|
|
|
{
|
|
|
|
struct {
|
|
|
|
int x, y, w, h;
|
|
|
|
int res_w, res_h;
|
2007-06-04 02:48:28 -07:00
|
|
|
double scale;
|
2007-05-03 22:43:13 -07:00
|
|
|
unsigned char valid;
|
|
|
|
} geom;
|
|
|
|
struct {
|
|
|
|
int type;
|
|
|
|
const char *icon;
|
|
|
|
unsigned char valid;
|
|
|
|
} icon;
|
|
|
|
const char *label;
|
2009-02-15 15:09:09 -08:00
|
|
|
E_Fm2_Custom_Dir *dir;
|
2007-05-03 22:43:13 -07:00
|
|
|
/* FIXME: this will have more added */
|
|
|
|
};
|
|
|
|
|
2010-11-22 07:21:32 -08:00
|
|
|
EINTERN int e_fm2_custom_file_init(void);
|
|
|
|
EINTERN void e_fm2_custom_file_shutdown(void);
|
2007-05-03 22:43:13 -07:00
|
|
|
EAPI E_Fm2_Custom_File *e_fm2_custom_file_get(const char *path);
|
2009-02-15 15:09:09 -08:00
|
|
|
EAPI void e_fm2_custom_file_set(const char *path, const E_Fm2_Custom_File *cf);
|
2007-05-03 22:43:13 -07:00
|
|
|
EAPI void e_fm2_custom_file_del(const char *path);
|
|
|
|
EAPI void e_fm2_custom_file_rename(const char *path, const char *new_path);
|
|
|
|
EAPI void e_fm2_custom_file_flush(void);
|
|
|
|
|
2009-02-15 15:09:09 -08:00
|
|
|
EAPI E_Fm2_Custom_File *e_fm2_custom_file_dup(const E_Fm2_Custom_File *cf);
|
|
|
|
|
2007-05-03 22:43:13 -07:00
|
|
|
#endif
|
|
|
|
#endif
|