Krolyxon
Commit d81442f

Branches

Refs →

nsxivoptions.h

63 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 int framerate;
41
42 /* window: */
43 bool fullscreen;
44 bool hide_bar;
45 long embed;
46 char *geometry;
47 char *res_name;
48
49 /* misc flags: */
50 bool quiet;
51 bool thumb_mode;
52 bool clean_cache;
53 bool private_mode;
54} options_t;
55
56extern const options_t *options;
57
58void print_usage(void);
59void print_version(void);
60
61void parse_options(int, char**);
62
63#endif /* OPTIONS_H */