A Simple X Image Viewer
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 13 gadiem
pirms 13 gadiem
pirms 13 gadiem
pirms 13 gadiem
pirms 14 gadiem
pirms 14 gadiem
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* sxiv: options.h
  2. * Copyright (c) 2011 Bert Muennich <be.muennich at googlemail.com>
  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 */