aboutsummaryrefslogblamecommitdiff
path: root/types.h
blob: bf8d4e2890469120a8ea956cf9adfd2bd0de325d (plain) (tree)
1
2
3
4
5
6
7
8
9



               

                   

            
              
                 





                  
                   




                  
                     




                    
                

                                                

             

                               


                               

  

                                
                    
#ifndef TYPES_H
#define TYPES_H

typedef enum {
	MODE_IMAGE,
	MODE_THUMB
} appmode_t;

typedef enum {
	DIR_LEFT,
	DIR_RIGHT,
	DIR_UP,
	DIR_DOWN
} direction_t;

typedef enum {
	SCALE_DOWN,
	SCALE_FIT,
	SCALE_ZOOM
} scalemode_t;

typedef enum {
	CURSOR_ARROW,
	CURSOR_NONE,
	CURSOR_HAND,
	CURSOR_WATCH
} cursor_t;

typedef struct {
	const char *name; /* as given by user */
	const char *path; /* always absolute */
} fileinfo_t;

/* timeouts in milliseconds: */
enum {
	TO_REDRAW_RESIZE = 75,
	TO_REDRAW_THUMBS = 200,
	TO_CURSOR_HIDE   = 1500
};

typedef void (*timeout_f)(void);

#endif /* TYPES_H */