Debian Codegraph @

texk/xdvik/gui/mag.h

raw
1 /*
2 * Copyright (c) 1990-2004 Paul Vojta and others
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to
6 * deal in the Software without restriction, including without limitation the
7 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8 * sell copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * PAUL VOJTA OR ANY OTHER AUTHOR OF THIS SOFTWARE BE LIABLE FOR ANY CLAIM,
18 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * NOTE: xdvi is based on prior work, as noted in the modification history in
23 * xdvi.c.
24 *
25 */
26
27 #ifndef MAG_H_
28 #define MAG_H_
29
30 #define MAGBORD 1 /* border size for magnifier */
31
32
33 extern size_t get_magglass_items(void);
34 extern int get_magglass_width(int idx);
35 extern int get_magglass_height(int idx);
36 extern void set_magglass_widht(int idx, int w);
37 extern void set_magglass_height(int idx, int h);
38
39 extern void show_distance_from_ruler(XEvent *event, Boolean to_stdout);
40 extern void drag_ruler_motion(XEvent *event);
41 extern void drag_ruler_release(XEvent *event);
42 extern void clear_ruler(void);
43 extern void show_ruler(XEvent *event);
44 extern void redraw_ruler(void);
45 extern void ruler_snap_origin(XEvent *event);
46
47 extern void magnifier_move(String params, XEvent *event);
48 extern void mag_release(XEvent * event);
49 extern void move_magnifier(void);
50 extern void create_magnifier(void);
51
52 #endif /* MAG_H_ */
53