2011-07-22 14:49:06 +02:00
|
|
|
#ifndef TYPES_H
|
|
|
|
#define TYPES_H
|
|
|
|
|
|
|
|
typedef enum {
|
2011-08-19 13:09:22 +02:00
|
|
|
MODE_IMAGE,
|
|
|
|
MODE_THUMB
|
2011-07-22 14:49:06 +02:00
|
|
|
} appmode_t;
|
|
|
|
|
|
|
|
typedef enum {
|
2011-07-26 18:01:29 +02:00
|
|
|
DIR_LEFT,
|
2011-07-22 14:49:06 +02:00
|
|
|
DIR_RIGHT,
|
|
|
|
DIR_UP,
|
|
|
|
DIR_DOWN
|
|
|
|
} direction_t;
|
|
|
|
|
|
|
|
typedef enum {
|
2011-07-26 18:01:29 +02:00
|
|
|
SCALE_DOWN,
|
2011-07-22 14:49:06 +02:00
|
|
|
SCALE_FIT,
|
|
|
|
SCALE_ZOOM
|
|
|
|
} scalemode_t;
|
|
|
|
|
|
|
|
typedef enum {
|
2011-07-26 18:01:29 +02:00
|
|
|
CURSOR_ARROW,
|
2011-07-22 14:49:06 +02:00
|
|
|
CURSOR_NONE,
|
|
|
|
CURSOR_HAND,
|
|
|
|
CURSOR_WATCH
|
|
|
|
} cursor_t;
|
|
|
|
|
2011-08-18 00:38:55 +02:00
|
|
|
typedef struct {
|
2011-08-18 12:05:38 +02:00
|
|
|
const char *name; /* as given by user */
|
|
|
|
const char *path; /* always absolute */
|
2011-09-06 11:55:31 +02:00
|
|
|
unsigned char loaded;
|
2011-08-18 00:38:55 +02:00
|
|
|
} fileinfo_t;
|
|
|
|
|
2011-08-19 15:02:10 +02:00
|
|
|
/* timeouts in milliseconds: */
|
|
|
|
enum {
|
2011-09-02 04:33:44 +02:00
|
|
|
TO_REDRAW_RESIZE = 75,
|
|
|
|
TO_REDRAW_THUMBS = 200,
|
2011-09-03 17:01:39 +02:00
|
|
|
TO_CURSOR_HIDE = 1200
|
2011-08-19 15:02:10 +02:00
|
|
|
};
|
|
|
|
|
2011-09-02 04:33:44 +02:00
|
|
|
typedef void (*timeout_f)(void);
|
|
|
|
|
2011-07-22 14:49:06 +02:00
|
|
|
#endif /* TYPES_H */
|