Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 44 lines (35 sloc) 0.6 kB
a271e16 @muennich Reduced usage of preprocessor macros
authored
1 #ifndef TYPES_H
2 #define TYPES_H
3
4 typedef enum {
421f012 @muennich Renamed application modes
authored
5 MODE_IMAGE,
6 MODE_THUMB
a271e16 @muennich Reduced usage of preprocessor macros
authored
7 } appmode_t;
8
9 typedef enum {
b8ff167 @muennich Major code refactoring
authored
10 DIR_LEFT,
a271e16 @muennich Reduced usage of preprocessor macros
authored
11 DIR_RIGHT,
12 DIR_UP,
13 DIR_DOWN
14 } direction_t;
15
16 typedef enum {
b8ff167 @muennich Major code refactoring
authored
17 SCALE_DOWN,
a271e16 @muennich Reduced usage of preprocessor macros
authored
18 SCALE_FIT,
19 SCALE_ZOOM
20 } scalemode_t;
21
22 typedef enum {
b8ff167 @muennich Major code refactoring
authored
23 CURSOR_ARROW,
a271e16 @muennich Reduced usage of preprocessor macros
authored
24 CURSOR_NONE,
25 CURSOR_HAND,
26 CURSOR_WATCH
27 } cursor_t;
28
ff013dd @muennich Revised handling of file names & paths
authored
29 typedef struct {
27591b5 @muennich Small refactorings
authored
30 const char *name; /* as given by user */
31 const char *path; /* always absolute */
ff013dd @muennich Revised handling of file names & paths
authored
32 } fileinfo_t;
33
1d74938 @muennich Put event handling back into main.c; events -> commands
authored
34 /* timeouts in milliseconds: */
35 enum {
1e84773 @muennich Data driven timeout handling
authored
36 TO_REDRAW_RESIZE = 75,
37 TO_REDRAW_THUMBS = 200,
38 TO_CURSOR_HIDE = 1500
1d74938 @muennich Put event handling back into main.c; events -> commands
authored
39 };
40
1e84773 @muennich Data driven timeout handling
authored
41 typedef void (*timeout_f)(void);
42
a271e16 @muennich Reduced usage of preprocessor macros
authored
43 #endif /* TYPES_H */
Something went wrong with that request. Please try again.