Bram Moolenaar | b20b9e1 | 2019-09-21 20:48:04 +0200 | [diff] [blame] | 1 | /* mouse.c */ |
LemonBoy | c27747e | 2022-05-07 12:25:40 +0100 | [diff] [blame] | 2 | void mouse_set_vert_scroll_step(long step); |
| 3 | void mouse_set_hor_scroll_step(long step); |
Bram Moolenaar | b20b9e1 | 2019-09-21 20:48:04 +0200 | [diff] [blame] | 4 | int do_mouse(oparg_T *oap, int c, int dir, long count, int fixindent); |
| 5 | void ins_mouse(int c); |
| 6 | void ins_mousescroll(int dir); |
| 7 | int is_mouse_key(int c); |
| 8 | int get_mouse_button(int code, int *is_click, int *is_drag); |
| 9 | int get_pseudo_mouse_code(int button, int is_click, int is_drag); |
| 10 | void set_mouse_termcode(int n, char_u *s); |
| 11 | void del_mouse_termcode(int n); |
| 12 | void setmouse(void); |
| 13 | int mouse_has(int c); |
| 14 | int mouse_model_popup(void); |
zeertzjq | 8e0ccb6 | 2022-11-01 18:35:27 +0000 | [diff] [blame] | 15 | void reset_dragwin(void); |
Bram Moolenaar | b20b9e1 | 2019-09-21 20:48:04 +0200 | [diff] [blame] | 16 | int jump_to_mouse(int flags, int *inclusive, int which_button); |
Christopher Plewright | 44c2209 | 2022-11-15 17:43:36 +0000 | [diff] [blame] | 17 | int do_mousescroll_horiz(long_u leftcol); |
Bram Moolenaar | b20b9e1 | 2019-09-21 20:48:04 +0200 | [diff] [blame] | 18 | void nv_mousescroll(cmdarg_T *cap); |
| 19 | void nv_mouse(cmdarg_T *cap); |
Bram Moolenaar | 85eee5b | 2021-06-03 20:34:57 +0200 | [diff] [blame] | 20 | void reset_held_button(void); |
Bram Moolenaar | b8ff5c2 | 2019-09-23 21:16:54 +0200 | [diff] [blame] | 21 | int check_termcode_mouse(char_u *tp, int *slen, char_u *key_name, char_u *modifiers_start, int idx, int *modifiers); |
Bram Moolenaar | b20b9e1 | 2019-09-21 20:48:04 +0200 | [diff] [blame] | 22 | int mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump, int *plines_cache); |
| 23 | win_T *mouse_find_win(int *rowp, int *colp, mouse_find_T popup); |
zeertzjq | f5a94d5 | 2023-10-15 10:03:30 +0200 | [diff] [blame] | 24 | int vcol2col(win_T *wp, linenr_T lnum, int vcol, colnr_T *coladdp); |
Bram Moolenaar | db3a205 | 2019-11-16 18:22:41 +0100 | [diff] [blame] | 25 | void f_getmousepos(typval_T *argvars, typval_T *rettv); |
Bram Moolenaar | b20b9e1 | 2019-09-21 20:48:04 +0200 | [diff] [blame] | 26 | /* vim: set ft=c : */ |