A Simple X Image Viewer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
600 B

  1. #ifndef TYPES_H
  2. #define TYPES_H
  3. typedef enum {
  4. MODE_IMAGE,
  5. MODE_THUMB
  6. } appmode_t;
  7. typedef enum {
  8. DIR_LEFT,
  9. DIR_RIGHT,
  10. DIR_UP,
  11. DIR_DOWN
  12. } direction_t;
  13. typedef enum {
  14. SCALE_DOWN,
  15. SCALE_FIT,
  16. SCALE_ZOOM
  17. } scalemode_t;
  18. typedef enum {
  19. CURSOR_ARROW,
  20. CURSOR_NONE,
  21. CURSOR_HAND,
  22. CURSOR_WATCH
  23. } cursor_t;
  24. typedef struct {
  25. const char *name; /* as given by user */
  26. const char *path; /* always absolute */
  27. } fileinfo_t;
  28. /* timeouts in milliseconds: */
  29. enum {
  30. TO_REDRAW_RESIZE = 75,
  31. TO_REDRAW_THUMBS = 200,
  32. TO_CURSOR_HIDE = 1500
  33. };
  34. typedef void (*timeout_f)(void);
  35. #endif /* TYPES_H */