Krolyxon
Commit 7177270

Branches

Refs →

nsxivtypes.h

50 lines · 671 B · Objective-C

1#ifndef TYPES_H
2#define TYPES_H
3
4typedef enum {
5 false,
6 true
7} bool;
8
9typedef enum {
10 MODE_IMAGE,
11 MODE_THUMB
12} appmode_t;
13
14typedef enum {
15 DIR_LEFT,
16 DIR_RIGHT,
17 DIR_UP,
18 DIR_DOWN
19} direction_t;
20
21typedef enum {
22 SCALE_DOWN,
23 SCALE_FIT,
24 SCALE_ZOOM
25} scalemode_t;
26
27typedef enum {
28 CURSOR_ARROW,
29 CURSOR_NONE,
30 CURSOR_HAND,
31 CURSOR_WATCH
32} cursor_t;
33
34typedef struct {
35 const char *name; /* as given by user */
36 const char *path; /* always absolute */
37 const char *base;
38 bool loaded;
39} fileinfo_t;
40
41/* timeouts in milliseconds: */
42enum {
43 TO_REDRAW_RESIZE = 75,
44 TO_REDRAW_THUMBS = 200,
45 TO_CURSOR_HIDE = 1200
46};
47
48typedef void (*timeout_f)(void);
49
50#endif /* TYPES_H */