A Simple X Image Viewer
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

60 linhas
1.3 KiB

  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 fullscreen;
  37. bool hide_bar;
  38. char *geometry;
  39. char *res_name;
  40. /* misc flags: */
  41. bool quiet;
  42. bool thumb_mode;
  43. bool clean_cache;
  44. } options_t;
  45. extern const options_t *options;
  46. void print_usage(void);
  47. void print_version(void);
  48. void parse_options(int, char**);
  49. #endif /* OPTIONS_H */