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