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.

11 年之前
13 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* Copyright 2011 Bert Muennich
  2. *
  3. * This file is part of sxiv.
  4. *
  5. * sxiv is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published
  7. * by the Free Software Foundation; either version 2 of the License,
  8. * or (at your option) any later version.
  9. *
  10. * sxiv is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with sxiv. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef OPTIONS_H
  19. #define OPTIONS_H
  20. #include "types.h"
  21. #include "image.h"
  22. typedef struct {
  23. /* file list: */
  24. char **filenames;
  25. bool from_stdin;
  26. bool to_stdout;
  27. bool recursive;
  28. int filecnt;
  29. int startnum;
  30. /* image: */
  31. scalemode_t scalemode;
  32. float zoom;
  33. int gamma;
  34. int slideshow;
  35. /* window: */
  36. bool fixed_win;
  37. bool fullscreen;
  38. bool hide_bar;
  39. char *geometry;
  40. char *res_name;
  41. /* misc flags: */
  42. bool quiet;
  43. bool thumb_mode;
  44. bool clean_cache;
  45. } options_t;
  46. extern const options_t *options;
  47. void print_usage(void);
  48. void print_version(void);
  49. void parse_options(int, char**);
  50. #endif /* OPTIONS_H */