diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-04-14 08:35:50 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-04-14 08:35:50 +0000 |
commit | 8af55a14b7fb6dcc703f803ef3cd3cd359ae345d (patch) | |
tree | f828f1c548fdec0d51e315052a0cbdb58fd7d29e /Build/source/texk/xdvik/xdvi.h | |
parent | 3606cb1179eae47f2ee7d2569ae7ac024deb1310 (diff) |
xdvik 22.87
git-svn-id: svn://tug.org/texlive/trunk@33436 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvik/xdvi.h')
-rw-r--r-- | Build/source/texk/xdvik/xdvi.h | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/Build/source/texk/xdvik/xdvi.h b/Build/source/texk/xdvik/xdvi.h index 668e5fbd906..bd6542be223 100644 --- a/Build/source/texk/xdvik/xdvi.h +++ b/Build/source/texk/xdvik/xdvi.h @@ -1,6 +1,6 @@ /*========================================================================*\ -Copyright (c) 1990-2013 Paul Vojta +Copyright (c) 1990-2014 Paul Vojta Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to @@ -165,6 +165,10 @@ in xdvi.c. #include <X11/Xfuncs.h> #include <X11/Intrinsic.h> +#if HAVE_XI21 +# include <X11/extensions/XInput2.h> /* for hi-res (smooth) scrolling */ +#endif + #ifndef MAXPATHLEN # ifdef PATH_MAX # define MAXPATHLEN PATH_MAX @@ -479,6 +483,9 @@ extern struct x_resources { char *prefs_editor_list; #endif Boolean freetype; +#if HAVE_XI21 + Boolean xi2scrolling; +#endif const char *src_pos; const char *find_string; const char *text_encoding; @@ -948,6 +955,51 @@ extern unsigned int color_list_max; /* allocated size */ extern Boolean color_warned; #endif /* COLOR */ + +#if HAVE_XI21 +struct xi2_valinfo { + int number; + double increment; + double lastval; + double lastexact; + double factor; + unsigned long serial; +}; + +struct xi2_slave { + int id; /* slave device id */ + unsigned int flags; + unsigned char enabled; + unsigned char btn_mask; /* buttons corresponding to valuators */ + struct xi2_valinfo vert, horiz; + struct xi2_slave *next; +}; + + /* flag bits */ +# define XI2_SLAVE_VERT (1<<0) /* if vert. valuator present */ +# define XI2_SLAVE_HORIZ (1<<1) /* if horiz. valuator present */ + +struct xi2_master { + int id; /* master device id */ + struct xi2_slave *slave; /* currently active slave dev */ + struct xi2_master *next; +}; + + +extern int xi2_opcode; +extern Boolean xi2_active; +extern struct xi2_master *xi2_masters; /* linked list of master devs */ +extern struct xi2_master *xi2_current; /* current master device */ +extern struct xi2_slave *xi2_slaves; /* linked list of slave devs */ + +extern struct xi2_slave xi2_no_slave; /* if no slave assigned yet */ + +extern void xi2_init_valuators(struct xi2_slave *, XIAnyClassInfo **, int); +extern void xi2_activate(void); + +#endif /* HAVE_XI21 */ + + extern Boolean dvi_file_corrupted; extern short magnifier_stat; /* 1 = wait for expose, -1 = destroy upon expose */ |