Krolyxon
Commit 7b91e10

Branches

Refs →

nsxivoptions.h

60 lines · 1.3 KB · Objective-C

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
19#ifndef OPTIONS_H
20#define OPTIONS_H
21
22#include "types.h"
23#include "image.h"
24
25typedef struct {
26 /* file list: */
27 char **filenames;
28 bool from_stdin;
29 bool to_stdout;
30 bool recursive;
31 int filecnt;
32 int startnum;
33
34 /* image: */
35 scalemode_t scalemode;
36 float zoom;
37 bool animate;
38 int gamma;
39 int slideshow;
40
41 /* window: */
42 bool fullscreen;
43 bool hide_bar;
44 char *geometry;
45 char *res_name;
46
47 /* misc flags: */
48 bool quiet;
49 bool thumb_mode;
50 bool clean_cache;
51} options_t;
52
53extern const options_t *options;
54
55void print_usage(void);
56void print_version(void);
57
58void parse_options(int, char**);
59
60#endif /* OPTIONS_H */