Debian Codegraph @

src/consolation.h

raw symbols SCIP
1 /* Copyright © 2016 Bill Allombert
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2 of the License, or
6 (at your option) any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 Check the License for details. You should have received a copy of it, along
14 with the package; see the file 'COPYING'. If not, write to the Free Software
15 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 */
17
18 /* options */
19
20 extern int nodaemon;
21 extern int do_mouse_reporting;
22
23 enum current_button {
24 BUTTON_LEFT,
25 BUTTON_MIDDLE,
26 BUTTON_RIGHT,
27 BUTTON_RELEASED
28 };
29
30 enum mouse_reporting_mode {
31 MOUSE_REPORTING_OFF,
32 MOUSE_REPORTING_X10,
33 MOUSE_REPORTING_X11,
34 MOUSE_REPORTING_MODE_COUNT
35 };
36
37 /* global state */
38
39 extern unsigned int screen_width;
40 extern unsigned int screen_height;
41 extern enum mouse_reporting_mode mouse_reporting;
42
43 /* selection.c */
44
45 void set_screen_size_and_mouse_reporting(void);
46 void report_pointer(int x, int y, enum current_button button);
47 void draw_pointer(int x, int y);
48 void select_region(int x, int y, int x2, int y2);
49 void select_words(int x, int y, int x2, int y2);
50 void select_lines(int x, int y, int x2, int y2);
51 void paste(void);
52 void scroll(int sc);
53 void set_lut(const char *word_chars);
54
55 /* action.c */
56
57 void set_pointer(double x, double y);
58 void move_pointer(double x, double y);
59 void press_left_button(void);
60 void release_left_button(void);
61 void press_middle_button(void);
62 void release_middle_button(void);
63 void press_right_button(void);
64 void release_right_button(void);
65 void vertical_axis(double v);
66
67 /* input.c */
68
69 int event_init(int argc, char **argv);
70 int event_main(void);