Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (49 sloc) 0.798 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 {
691c6d7 @muennich Added own exif tag handling in files exif.[ch]
authored
10 BO_BIG_ENDIAN,
11 BO_LITTLE_ENDIAN
12 } byteorder_t;
13
14 typedef enum {
421f012 @muennich Renamed application modes
authored
15 MODE_IMAGE,
16 MODE_THUMB
a271e16 @muennich Reduced usage of preprocessor macros
authored
17 } appmode_t;
18
19 typedef enum {
b8ff167 @muennich Major code refactoring
authored
20 DIR_LEFT,
a271e16 @muennich Reduced usage of preprocessor macros
authored
21 DIR_RIGHT,
22 DIR_UP,
23 DIR_DOWN
24 } direction_t;
25
26 typedef enum {
ba0a5b8 @baskerville Added horizontal and vertical flip commands
baskerville authored
27 FLIP_HORIZONTAL,
28 FLIP_VERTICAL
4c40cc2 @muennich Slightly refactored flipping
authored
29 } flipdir_t;
ba0a5b8 @baskerville Added horizontal and vertical flip commands
baskerville authored
30
31 typedef enum {
b8ff167 @muennich Major code refactoring
authored
32 SCALE_DOWN,
a271e16 @muennich Reduced usage of preprocessor macros
authored
33 SCALE_FIT,
34 SCALE_ZOOM
35 } scalemode_t;
36
37 typedef enum {
b8ff167 @muennich Major code refactoring
authored
38 CURSOR_ARROW,
a271e16 @muennich Reduced usage of preprocessor macros
authored
39 CURSOR_NONE,
40 CURSOR_HAND,
41 CURSOR_WATCH
42 } cursor_t;
43
ff013dd @muennich Revised handling of file names & paths
authored
44 typedef struct {
27591b5 @muennich Small refactorings
authored
45 const char *name; /* as given by user */
46 const char *path; /* always absolute */
b845827 @muennich Added text bar on bottom of window
authored
47 const char *base;
b2a2a62 @muennich Added own bool type
authored
48 bool loaded;
ff013dd @muennich Revised handling of file names & paths
authored
49 } fileinfo_t;
50
1d74938 @muennich Put event handling back into main.c; events -> commands
authored
51 /* timeouts in milliseconds: */
52 enum {
1e84773 @muennich Data driven timeout handling
authored
53 TO_REDRAW_RESIZE = 75,
54 TO_REDRAW_THUMBS = 200,
a7a8497 @muennich Simplified cursor resetting
authored
55 TO_CURSOR_HIDE = 1200
1d74938 @muennich Put event handling back into main.c; events -> commands
authored
56 };
57
1e84773 @muennich Data driven timeout handling
authored
58 typedef void (*timeout_f)(void);
59
a271e16 @muennich Reduced usage of preprocessor macros
authored
60 #endif /* TYPES_H */
Something went wrong with that request. Please try again.