A Simple X Image Viewer
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

63 行
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. bool animate;
  34. int gamma;
  35. int slideshow;
  36. int framerate;
  37. /* window: */
  38. bool fullscreen;
  39. bool hide_bar;
  40. long embed;
  41. char *geometry;
  42. char *res_name;
  43. /* misc flags: */
  44. bool quiet;
  45. bool thumb_mode;
  46. bool clean_cache;
  47. } options_t;
  48. extern const options_t *options;
  49. void print_usage(void);
  50. void print_version(void);
  51. void parse_options(int, char**);
  52. #endif /* OPTIONS_H */