A Simple X Image Viewer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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