A Simple X Image Viewer
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

57 satır
1.3 KiB

  1. /* sxiv: options.h
  2. * Copyright (c) 2011 Bert Muennich <muennich at informatik.hu-berlin.de>
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of the GNU General Public License as published by the
  6. * Free Software Foundation; either version 2 of the License, or (at your
  7. * option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along
  15. * with this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17. */
  18. #ifndef OPTIONS_H
  19. #define OPTIONS_H
  20. #include "image.h"
  21. #include "types.h"
  22. typedef struct {
  23. /* file list: */
  24. char **filenames;
  25. bool from_stdin;
  26. bool recursive;
  27. int filecnt;
  28. int startnum;
  29. /* image: */
  30. scalemode_t scalemode;
  31. float zoom;
  32. bool aa;
  33. /* window: */
  34. bool fixed_win;
  35. bool fullscreen;
  36. char *geometry;
  37. /* misc flags: */
  38. bool quiet;
  39. bool thumb_mode;
  40. bool clean_cache;
  41. } options_t;
  42. extern const options_t *options;
  43. void print_usage(void);
  44. void print_version(void);
  45. void parse_options(int, char**);
  46. #endif /* OPTIONS_H */