Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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