2021-10-28 10:41:16 +00:00
|
|
|
/* Copyright 2011-2020 Bert Muennich
|
2022-02-09 07:09:42 +00:00
|
|
|
* Copyright 2021-2022 nsxiv contributors
|
2017-10-16 19:10:35 +00:00
|
|
|
*
|
2021-09-16 09:32:59 +00:00
|
|
|
* This file is a part of nsxiv.
|
2017-10-16 19:10:35 +00:00
|
|
|
*
|
2021-09-16 09:32:59 +00:00
|
|
|
* nsxiv is free software; you can redistribute it and/or modify
|
2017-10-16 19:10:35 +00:00
|
|
|
* it under the terms of the GNU General Public License as published
|
|
|
|
* by the Free Software Foundation; either version 2 of the License,
|
|
|
|
* or (at your option) any later version.
|
|
|
|
*
|
2021-09-16 09:32:59 +00:00
|
|
|
* nsxiv is distributed in the hope that it will be useful,
|
2017-10-16 19:10:35 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-09-16 09:32:59 +00:00
|
|
|
* along with nsxiv. If not, see <http://www.gnu.org/licenses/>.
|
2017-10-16 19:10:35 +00:00
|
|
|
*/
|
|
|
|
|
2021-09-16 09:32:59 +00:00
|
|
|
#ifndef NSXIV_H
|
|
|
|
#define NSXIV_H
|
2017-10-16 19:10:35 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
2022-06-16 07:39:03 +00:00
|
|
|
#include <stddef.h>
|
|
|
|
|
2017-10-16 19:10:35 +00:00
|
|
|
#include <Imlib2.h>
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Annotation for functions called in cleanup().
|
|
|
|
* These functions are not allowed to call error(!0, ...) or exit().
|
|
|
|
*/
|
|
|
|
#define CLEANUP
|
|
|
|
|
|
|
|
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
|
|
|
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
2021-09-25 05:10:29 +00:00
|
|
|
#define ABS(a) ((a) > 0 ? (a) : -(a))
|
2017-10-16 19:10:35 +00:00
|
|
|
|
|
|
|
#define ARRLEN(a) (sizeof(a) / sizeof((a)[0]))
|
|
|
|
#define STREQ(s1,s2) (strcmp((s1), (s2)) == 0)
|
|
|
|
|
|
|
|
typedef enum {
|
Add ability to bind arbitrary functions.
Before all the predated commands where kept in an array and their
indexes were used in bindings. This meant that users couldn't add their
own functions from the config file. Now key/mouse bindings have been
changed to to store the function ptr (wrapped in a cmd_t struct to also
store the mode) directly instead.
General cleanup done in this commit:
Defined `MODE_ALL` instead of using magic number.
For example, suppose one had bindings like:
{ 0, XK_q, g_quit, None },
{ ShitMask, XK_q, {quit_err}, None }
{ ControlMask, XK_q, {quit_err, .mode=MODE_IMAGE}, None }
The existing binding `q` has been left unchanged and is defined the same
way. However, the new hypothetical binding `Shift-q` can be used to call
the custom function quit_err in any mode (default). `Ctrl-q` on the
other hand will be called only on image mode.
Closes #50
2021-09-18 19:27:12 +00:00
|
|
|
MODE_ALL,
|
2017-10-16 19:10:35 +00:00
|
|
|
MODE_IMAGE,
|
|
|
|
MODE_THUMB
|
|
|
|
} appmode_t;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
DIR_LEFT = 1,
|
|
|
|
DIR_RIGHT = 2,
|
|
|
|
DIR_UP = 4,
|
|
|
|
DIR_DOWN = 8
|
|
|
|
} direction_t;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
DEGREE_90 = 1,
|
|
|
|
DEGREE_180 = 2,
|
|
|
|
DEGREE_270 = 3
|
|
|
|
} degree_t;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
FLIP_HORIZONTAL = 1,
|
|
|
|
FLIP_VERTICAL = 2
|
|
|
|
} flipdir_t;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
SCALE_DOWN,
|
|
|
|
SCALE_FIT,
|
2021-04-14 17:10:14 +00:00
|
|
|
SCALE_FILL,
|
2017-10-16 19:10:35 +00:00
|
|
|
SCALE_WIDTH,
|
|
|
|
SCALE_HEIGHT,
|
|
|
|
SCALE_ZOOM
|
|
|
|
} scalemode_t;
|
|
|
|
|
2018-01-12 12:39:46 +00:00
|
|
|
typedef enum {
|
|
|
|
DRAG_RELATIVE,
|
|
|
|
DRAG_ABSOLUTE
|
|
|
|
} dragmode_t;
|
|
|
|
|
2017-10-16 19:10:35 +00:00
|
|
|
typedef enum {
|
|
|
|
CURSOR_ARROW,
|
2021-10-27 03:00:46 +00:00
|
|
|
CURSOR_DRAG_ABSOLUTE,
|
|
|
|
CURSOR_DRAG_RELATIVE,
|
2017-10-16 19:10:35 +00:00
|
|
|
CURSOR_WATCH,
|
|
|
|
CURSOR_LEFT,
|
|
|
|
CURSOR_RIGHT,
|
|
|
|
CURSOR_NONE,
|
|
|
|
|
|
|
|
CURSOR_COUNT
|
|
|
|
} cursor_t;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
FF_WARN = 1,
|
|
|
|
FF_MARK = 2,
|
|
|
|
FF_TN_INIT = 4
|
|
|
|
} fileflags_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
const char *name; /* as given by user */
|
|
|
|
const char *path; /* always absolute */
|
|
|
|
fileflags_t flags;
|
|
|
|
} fileinfo_t;
|
|
|
|
|
|
|
|
/* timeouts in milliseconds: */
|
|
|
|
enum {
|
|
|
|
TO_REDRAW_RESIZE = 75,
|
|
|
|
TO_REDRAW_THUMBS = 200,
|
|
|
|
TO_CURSOR_HIDE = 1200,
|
|
|
|
TO_DOUBLE_CLICK = 300
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef void (*timeout_f)(void);
|
|
|
|
|
|
|
|
typedef struct arl arl_t;
|
|
|
|
typedef struct img img_t;
|
|
|
|
typedef struct opt opt_t;
|
|
|
|
typedef struct tns tns_t;
|
|
|
|
typedef struct win win_t;
|
|
|
|
|
|
|
|
|
|
|
|
/* autoreload.c */
|
|
|
|
|
|
|
|
struct arl {
|
|
|
|
int fd;
|
|
|
|
int wd_dir;
|
|
|
|
int wd_file;
|
2022-07-30 08:05:10 +00:00
|
|
|
const char *filename;
|
2017-10-16 19:10:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void arl_init(arl_t*);
|
|
|
|
void arl_cleanup(arl_t*);
|
2022-07-30 08:05:10 +00:00
|
|
|
void arl_add(arl_t*, const char* /* result of realpath(3) */);
|
2017-10-16 19:10:35 +00:00
|
|
|
bool arl_handle(arl_t*);
|
|
|
|
|
|
|
|
|
|
|
|
/* commands.c */
|
|
|
|
|
|
|
|
typedef int arg_t;
|
|
|
|
typedef bool (*cmd_f)(arg_t);
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
cmd_f func;
|
Add ability to bind arbitrary functions.
Before all the predated commands where kept in an array and their
indexes were used in bindings. This meant that users couldn't add their
own functions from the config file. Now key/mouse bindings have been
changed to to store the function ptr (wrapped in a cmd_t struct to also
store the mode) directly instead.
General cleanup done in this commit:
Defined `MODE_ALL` instead of using magic number.
For example, suppose one had bindings like:
{ 0, XK_q, g_quit, None },
{ ShitMask, XK_q, {quit_err}, None }
{ ControlMask, XK_q, {quit_err, .mode=MODE_IMAGE}, None }
The existing binding `q` has been left unchanged and is defined the same
way. However, the new hypothetical binding `Shift-q` can be used to call
the custom function quit_err in any mode (default). `Ctrl-q` on the
other hand will be called only on image mode.
Closes #50
2021-09-18 19:27:12 +00:00
|
|
|
appmode_t mode;
|
2017-10-16 19:10:35 +00:00
|
|
|
} cmd_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
unsigned int mask;
|
2021-11-19 05:49:42 +00:00
|
|
|
KeySym ksym_or_button;
|
Add ability to bind arbitrary functions.
Before all the predated commands where kept in an array and their
indexes were used in bindings. This meant that users couldn't add their
own functions from the config file. Now key/mouse bindings have been
changed to to store the function ptr (wrapped in a cmd_t struct to also
store the mode) directly instead.
General cleanup done in this commit:
Defined `MODE_ALL` instead of using magic number.
For example, suppose one had bindings like:
{ 0, XK_q, g_quit, None },
{ ShitMask, XK_q, {quit_err}, None }
{ ControlMask, XK_q, {quit_err, .mode=MODE_IMAGE}, None }
The existing binding `q` has been left unchanged and is defined the same
way. However, the new hypothetical binding `Shift-q` can be used to call
the custom function quit_err in any mode (default). `Ctrl-q` on the
other hand will be called only on image mode.
Closes #50
2021-09-18 19:27:12 +00:00
|
|
|
cmd_t cmd;
|
2017-10-16 19:10:35 +00:00
|
|
|
arg_t arg;
|
|
|
|
} keymap_t;
|
|
|
|
|
2021-11-19 05:49:42 +00:00
|
|
|
typedef keymap_t button_t;
|
2017-10-16 19:10:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* image.c */
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
Imlib_Image im;
|
|
|
|
unsigned int delay;
|
|
|
|
} img_frame_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
img_frame_t *frames;
|
2022-07-15 20:46:23 +00:00
|
|
|
unsigned int cap;
|
|
|
|
unsigned int cnt;
|
|
|
|
unsigned int sel;
|
2017-10-16 19:10:35 +00:00
|
|
|
bool animate;
|
2021-10-28 20:00:53 +00:00
|
|
|
unsigned int framedelay;
|
2017-10-16 19:10:35 +00:00
|
|
|
int length;
|
|
|
|
} multi_img_t;
|
|
|
|
|
|
|
|
struct img {
|
|
|
|
Imlib_Image im;
|
|
|
|
int w;
|
|
|
|
int h;
|
|
|
|
|
|
|
|
win_t *win;
|
|
|
|
float x;
|
|
|
|
float y;
|
|
|
|
|
2021-10-28 10:38:32 +00:00
|
|
|
Imlib_Color_Modifier cmod;
|
|
|
|
int gamma;
|
2022-12-22 11:21:40 +00:00
|
|
|
int brightness;
|
|
|
|
int contrast;
|
2021-10-28 10:38:32 +00:00
|
|
|
|
2017-10-16 19:10:35 +00:00
|
|
|
scalemode_t scalemode;
|
|
|
|
float zoom;
|
|
|
|
|
|
|
|
bool checkpan;
|
|
|
|
bool dirty;
|
2022-09-10 13:30:40 +00:00
|
|
|
bool anti_alias;
|
2017-10-16 19:10:35 +00:00
|
|
|
bool alpha;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
bool on;
|
|
|
|
int delay;
|
|
|
|
} ss;
|
|
|
|
|
|
|
|
multi_img_t multi;
|
|
|
|
};
|
|
|
|
|
|
|
|
void img_init(img_t*, win_t*);
|
|
|
|
bool img_load(img_t*, const fileinfo_t*);
|
|
|
|
CLEANUP void img_close(img_t*, bool);
|
|
|
|
void img_render(img_t*);
|
|
|
|
bool img_fit_win(img_t*, scalemode_t);
|
2021-09-25 05:10:29 +00:00
|
|
|
bool img_zoom(img_t*, int);
|
|
|
|
bool img_zoom_to(img_t*, float);
|
2017-10-16 19:10:35 +00:00
|
|
|
bool img_pos(img_t*, float, float);
|
|
|
|
bool img_pan(img_t*, direction_t, int);
|
2022-01-15 22:51:31 +00:00
|
|
|
bool img_pan_center(img_t*);
|
2017-10-16 19:10:35 +00:00
|
|
|
bool img_pan_edge(img_t*, direction_t);
|
|
|
|
void img_rotate(img_t*, degree_t);
|
|
|
|
void img_flip(img_t*, flipdir_t);
|
|
|
|
void img_toggle_antialias(img_t*);
|
2022-12-22 11:21:40 +00:00
|
|
|
void img_update_color_modifiers(img_t*);
|
|
|
|
bool img_change_color_modifier(img_t*, int, int*);
|
2017-10-16 19:10:35 +00:00
|
|
|
bool img_frame_navigate(img_t*, int);
|
|
|
|
bool img_frame_animate(img_t*);
|
2022-05-03 15:36:57 +00:00
|
|
|
Imlib_Image img_open(const fileinfo_t*);
|
|
|
|
#if HAVE_LIBEXIF
|
|
|
|
void exif_auto_orientate(const fileinfo_t*);
|
|
|
|
#endif
|
2017-10-16 19:10:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* options.c */
|
|
|
|
|
|
|
|
struct opt {
|
|
|
|
/* file list: */
|
|
|
|
char **filenames;
|
|
|
|
bool from_stdin;
|
|
|
|
bool to_stdout;
|
2021-10-28 05:43:36 +00:00
|
|
|
bool using_null;
|
2017-10-16 19:10:35 +00:00
|
|
|
bool recursive;
|
|
|
|
int filecnt;
|
|
|
|
int startnum;
|
|
|
|
|
|
|
|
/* image: */
|
|
|
|
scalemode_t scalemode;
|
|
|
|
float zoom;
|
|
|
|
bool animate;
|
2022-09-10 13:30:40 +00:00
|
|
|
bool anti_alias;
|
2017-10-16 19:10:35 +00:00
|
|
|
int gamma;
|
2022-09-14 04:58:41 +00:00
|
|
|
unsigned int slideshow;
|
2017-10-16 19:10:35 +00:00
|
|
|
int framerate;
|
|
|
|
|
|
|
|
/* window: */
|
|
|
|
bool fullscreen;
|
|
|
|
bool hide_bar;
|
2021-10-28 20:00:53 +00:00
|
|
|
Window embed; /* unsigned long */
|
2017-10-16 19:10:35 +00:00
|
|
|
char *geometry;
|
|
|
|
char *res_name;
|
|
|
|
|
|
|
|
/* misc flags: */
|
|
|
|
bool quiet;
|
|
|
|
bool thumb_mode;
|
|
|
|
bool clean_cache;
|
|
|
|
bool private_mode;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern const opt_t *options;
|
|
|
|
|
|
|
|
void print_usage(void);
|
|
|
|
void parse_options(int, char**);
|
|
|
|
|
|
|
|
|
|
|
|
/* thumbs.c */
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
Imlib_Image im;
|
|
|
|
int w;
|
|
|
|
int h;
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
} thumb_t;
|
|
|
|
|
|
|
|
struct tns {
|
|
|
|
fileinfo_t *files;
|
|
|
|
thumb_t *thumbs;
|
|
|
|
const int *cnt;
|
|
|
|
int *sel;
|
|
|
|
int initnext;
|
|
|
|
int loadnext;
|
|
|
|
int first, end;
|
|
|
|
int r_first, r_end;
|
|
|
|
|
|
|
|
win_t *win;
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int cols;
|
|
|
|
int rows;
|
|
|
|
int zl;
|
|
|
|
int bw;
|
|
|
|
int dim;
|
|
|
|
|
|
|
|
bool dirty;
|
|
|
|
};
|
|
|
|
|
2021-10-28 20:00:53 +00:00
|
|
|
void tns_clean_cache(void);
|
2017-10-16 19:10:35 +00:00
|
|
|
void tns_init(tns_t*, fileinfo_t*, const int*, int*, win_t*);
|
|
|
|
CLEANUP void tns_free(tns_t*);
|
|
|
|
bool tns_load(tns_t*, int, bool, bool);
|
|
|
|
void tns_unload(tns_t*, int);
|
|
|
|
void tns_render(tns_t*);
|
|
|
|
void tns_mark(tns_t*, int, bool);
|
|
|
|
void tns_highlight(tns_t*, int, bool);
|
|
|
|
bool tns_move_selection(tns_t*, direction_t, int);
|
|
|
|
bool tns_scroll(tns_t*, direction_t, bool);
|
|
|
|
bool tns_zoom(tns_t*, int);
|
|
|
|
int tns_translate(tns_t*, int, int);
|
|
|
|
|
|
|
|
|
|
|
|
/* util.c */
|
|
|
|
|
|
|
|
#include <dirent.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
DIR *dir;
|
|
|
|
char *name;
|
|
|
|
int d;
|
|
|
|
bool recursive;
|
|
|
|
|
|
|
|
char **stack;
|
|
|
|
int stcap;
|
|
|
|
int stlen;
|
|
|
|
} r_dir_t;
|
|
|
|
|
|
|
|
extern const char *progname;
|
|
|
|
|
|
|
|
void* emalloc(size_t);
|
2022-02-03 08:22:25 +00:00
|
|
|
void* ecalloc(size_t, size_t);
|
2017-10-16 19:10:35 +00:00
|
|
|
void* erealloc(void*, size_t);
|
|
|
|
char* estrdup(const char*);
|
|
|
|
void error(int, int, const char*, ...);
|
|
|
|
int r_opendir(r_dir_t*, const char*, bool);
|
|
|
|
int r_closedir(r_dir_t*);
|
2018-07-05 01:39:27 +00:00
|
|
|
char* r_readdir(r_dir_t*, bool);
|
2017-10-16 19:10:35 +00:00
|
|
|
int r_mkdir(char*);
|
2022-02-20 15:54:29 +00:00
|
|
|
void construct_argv(char**, unsigned int, ...);
|
2022-06-22 03:28:07 +00:00
|
|
|
pid_t spawn(int*, int*, char *const []);
|
2017-10-16 19:10:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* window.c */
|
|
|
|
|
|
|
|
#include <X11/Xutil.h>
|
2021-09-19 08:49:56 +00:00
|
|
|
#if HAVE_LIBFONTS
|
2017-10-16 19:10:35 +00:00
|
|
|
#include <X11/Xft/Xft.h>
|
2021-09-19 08:49:56 +00:00
|
|
|
#endif
|
2017-10-16 19:10:35 +00:00
|
|
|
|
|
|
|
enum {
|
|
|
|
ATOM_WM_DELETE_WINDOW,
|
|
|
|
ATOM__NET_WM_NAME,
|
|
|
|
ATOM__NET_WM_ICON_NAME,
|
|
|
|
ATOM__NET_WM_ICON,
|
|
|
|
ATOM__NET_WM_STATE,
|
2021-09-11 14:14:34 +00:00
|
|
|
ATOM__NET_WM_PID,
|
2017-10-16 19:10:35 +00:00
|
|
|
ATOM__NET_WM_STATE_FULLSCREEN,
|
2022-02-27 09:37:15 +00:00
|
|
|
ATOM_UTF8_STRING,
|
2022-02-27 18:38:27 +00:00
|
|
|
ATOM_WM_NAME,
|
|
|
|
ATOM_WM_ICON_NAME,
|
2017-10-16 19:10:35 +00:00
|
|
|
ATOM_COUNT
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
Display *dpy;
|
|
|
|
int scr;
|
|
|
|
int scrw, scrh;
|
|
|
|
Visual *vis;
|
|
|
|
Colormap cmap;
|
|
|
|
int depth;
|
|
|
|
} win_env_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
size_t size;
|
|
|
|
char *p;
|
|
|
|
char *buf;
|
|
|
|
} win_bar_t;
|
|
|
|
|
|
|
|
struct win {
|
|
|
|
Window xwin;
|
|
|
|
win_env_t env;
|
|
|
|
|
2021-10-11 23:46:35 +00:00
|
|
|
XColor win_bg;
|
|
|
|
XColor win_fg;
|
|
|
|
XColor mrk_fg;
|
2021-09-19 08:49:56 +00:00
|
|
|
#if HAVE_LIBFONTS
|
2021-09-11 14:38:22 +00:00
|
|
|
XftColor bar_bg;
|
|
|
|
XftColor bar_fg;
|
2021-09-19 08:49:56 +00:00
|
|
|
#endif
|
2017-10-16 19:10:35 +00:00
|
|
|
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
unsigned int w;
|
|
|
|
unsigned int h; /* = win height - bar height */
|
|
|
|
unsigned int bw;
|
|
|
|
|
|
|
|
struct {
|
2022-07-15 20:46:23 +00:00
|
|
|
unsigned int w;
|
|
|
|
unsigned int h;
|
2017-10-16 19:10:35 +00:00
|
|
|
Pixmap pm;
|
|
|
|
} buf;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
unsigned int h;
|
2022-02-26 16:38:53 +00:00
|
|
|
bool top;
|
2017-10-16 19:10:35 +00:00
|
|
|
win_bar_t l;
|
|
|
|
win_bar_t r;
|
|
|
|
} bar;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern Atom atoms[ATOM_COUNT];
|
|
|
|
|
|
|
|
void win_init(win_t*);
|
|
|
|
void win_open(win_t*);
|
|
|
|
CLEANUP void win_close(win_t*);
|
|
|
|
bool win_configure(win_t*, XConfigureEvent*);
|
|
|
|
void win_toggle_fullscreen(win_t*);
|
|
|
|
void win_toggle_bar(win_t*);
|
|
|
|
void win_clear(win_t*);
|
|
|
|
void win_draw(win_t*);
|
|
|
|
void win_draw_rect(win_t*, int, int, int, int, bool, int, unsigned long);
|
2022-06-01 10:47:17 +00:00
|
|
|
void win_set_title(win_t*, const char*, size_t);
|
2017-10-16 19:10:35 +00:00
|
|
|
void win_set_cursor(win_t*, cursor_t);
|
|
|
|
void win_cursor_pos(win_t*, int*, int*);
|
|
|
|
|
2022-05-03 15:36:57 +00:00
|
|
|
/* main.c */
|
|
|
|
|
|
|
|
/* timeout handler functions: */
|
|
|
|
void redraw(void);
|
|
|
|
void reset_cursor(void);
|
|
|
|
void animate(void);
|
|
|
|
void slideshow(void);
|
|
|
|
void clear_resize(void);
|
|
|
|
|
|
|
|
void remove_file(int, bool);
|
|
|
|
void set_timeout(timeout_f, int, bool);
|
|
|
|
void reset_timeout(timeout_f);
|
|
|
|
void close_info(void);
|
|
|
|
void open_info(void);
|
|
|
|
void load_image(int);
|
|
|
|
bool mark_image(int, bool);
|
|
|
|
int nav_button(void);
|
|
|
|
void handle_key_handler(bool);
|
|
|
|
|
|
|
|
extern appmode_t mode;
|
|
|
|
extern const XButtonEvent *xbutton_ev;
|
|
|
|
extern fileinfo_t *files;
|
|
|
|
extern int filecnt, fileidx;
|
|
|
|
extern int alternate;
|
|
|
|
extern int markcnt;
|
|
|
|
extern int markidx;
|
|
|
|
extern int prefix;
|
2022-06-01 08:59:16 +00:00
|
|
|
extern bool title_dirty;
|
2022-05-03 15:36:57 +00:00
|
|
|
|
2021-09-16 09:32:59 +00:00
|
|
|
#endif /* NSXIV_H */
|