Krolyxon
Commit 5105127

Branches

Refs →

nsxivcommands.h

67 lines · 1.7 KB · Objective-C

1/* sxiv: commands.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
19#ifndef COMMANDS_H
20#define COMMANDS_H
21
22#include <X11/Xlib.h>
23
24typedef void* arg_t;
25typedef int (*command_f)(arg_t);
26
27typedef struct {
28 Bool ctrl;
29 KeySym ksym;
30 command_f cmd;
31 arg_t arg;
32} keymap_t;
33
34typedef struct {
35 Bool ctrl;
36 Bool shift;
37 unsigned int button;
38 command_f cmd;
39 arg_t arg;
40} button_t;
41
42int it_quit(arg_t);
43int it_switch_mode(arg_t);
44int it_toggle_fullscreen(arg_t);
45int it_reload_image(arg_t);
46int it_remove_image(arg_t);
47int i_navigate(arg_t);
48int it_first(arg_t);
49int it_last(arg_t);
50int i_navigate_frame(arg_t);
51int i_toggle_animation(arg_t);
52int it_move(arg_t);
53int i_pan_screen(arg_t);
54int i_pan_edge(arg_t);
55int i_drag(arg_t);
56int i_zoom(arg_t);
57int i_fit_to_win(arg_t);
58int i_fit_to_img(arg_t);
59int i_rotate(arg_t);
60int i_toggle_slideshow(arg_t);
61int i_adjust_slideshow(arg_t);
62int i_toggle_antialias(arg_t);
63int it_toggle_alpha(arg_t);
64int it_open_with(arg_t);
65int it_shell_cmd(arg_t);
66
67#endif /* COMMANDS_H */