Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* ui.c */ |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 2 | void ui_write(char_u *s, int len); |
| 3 | void ui_inchar_undo(char_u *s, int len); |
| 4 | int ui_inchar(char_u *buf, int maxlen, long wtime, int tb_change_cnt); |
Bram Moolenaar | e40b9d4 | 2019-01-27 16:55:47 +0100 | [diff] [blame] | 5 | int inchar_loop(char_u *buf, int maxlen, long wtime, int tb_change_cnt, int (*wait_func)(long wtime, int *interrupted, int ignore_input), int (*resize_func)(int check_only)); |
Bram Moolenaar | c9e649a | 2017-12-18 18:14:47 +0100 | [diff] [blame] | 6 | int ui_wait_for_chars_or_timer(long wtime, int (*wait_func)(long wtime, int *interrupted, int ignore_input), int *interrupted, int ignore_input); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 7 | int ui_char_avail(void); |
| 8 | void ui_delay(long msec, int ignoreinput); |
| 9 | void ui_suspend(void); |
| 10 | void suspend_shell(void); |
| 11 | int ui_get_shellsize(void); |
| 12 | void ui_set_shellsize(int mustset); |
| 13 | void ui_new_shellsize(void); |
| 14 | void ui_breakcheck(void); |
Bram Moolenaar | b9c31e7 | 2016-09-29 15:18:57 +0200 | [diff] [blame] | 15 | void ui_breakcheck_force(int force); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 16 | void clip_init(int can_use); |
| 17 | void clip_update_selection(VimClipboard *clip); |
| 18 | void clip_own_selection(VimClipboard *cbd); |
| 19 | void clip_lose_selection(VimClipboard *cbd); |
| 20 | void start_global_changes(void); |
Bram Moolenaar | 3fcfa35 | 2017-03-29 19:20:41 +0200 | [diff] [blame] | 21 | int is_clipboard_needs_update(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 22 | void end_global_changes(void); |
| 23 | void clip_auto_select(void); |
| 24 | int clip_isautosel_star(void); |
| 25 | int clip_isautosel_plus(void); |
| 26 | void clip_modeless(int button, int is_click, int is_drag); |
| 27 | void clip_start_selection(int col, int row, int repeated_click); |
| 28 | void clip_process_selection(int button, int col, int row, int_u repeated_click); |
| 29 | void clip_may_redraw_selection(int row, int col, int len); |
| 30 | void clip_clear_selection(VimClipboard *cbd); |
| 31 | void clip_may_clear_selection(int row1, int row2); |
| 32 | void clip_scroll_selection(int rows); |
| 33 | void clip_copy_modeless_selection(int both); |
| 34 | int clip_gen_own_selection(VimClipboard *cbd); |
| 35 | void clip_gen_lose_selection(VimClipboard *cbd); |
| 36 | void clip_gen_set_selection(VimClipboard *cbd); |
| 37 | void clip_gen_request_selection(VimClipboard *cbd); |
| 38 | int clip_gen_owner_exists(VimClipboard *cbd); |
| 39 | int vim_is_input_buf_full(void); |
| 40 | int vim_is_input_buf_empty(void); |
| 41 | int vim_free_in_input_buf(void); |
| 42 | int vim_used_in_input_buf(void); |
| 43 | char_u *get_input_buf(void); |
| 44 | void set_input_buf(char_u *p); |
| 45 | void add_to_input_buf(char_u *s, int len); |
| 46 | void add_to_input_buf_csi(char_u *str, int len); |
| 47 | void push_raw_key(char_u *s, int len); |
| 48 | void trash_input_buf(void); |
| 49 | int read_from_input_buf(char_u *buf, long maxlen); |
| 50 | void fill_input_buf(int exit_on_error); |
| 51 | void read_error_exit(void); |
Bram Moolenaar | 3cd43cc | 2017-08-12 19:51:41 +0200 | [diff] [blame] | 52 | void ui_cursor_shape_forced(int forced); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 53 | void ui_cursor_shape(void); |
| 54 | int check_col(int col); |
| 55 | int check_row(int row); |
| 56 | void open_app_context(void); |
| 57 | void x11_setup_atoms(Display *dpy); |
| 58 | void x11_setup_selection(Widget w); |
| 59 | void clip_x11_request_selection(Widget myShell, Display *dpy, VimClipboard *cbd); |
| 60 | void clip_x11_lose_selection(Widget myShell, VimClipboard *cbd); |
| 61 | int clip_x11_own_selection(Widget myShell, VimClipboard *cbd); |
| 62 | void clip_x11_set_selection(VimClipboard *cbd); |
| 63 | int clip_x11_owner_exists(VimClipboard *cbd); |
| 64 | void yank_cut_buffer0(Display *dpy, VimClipboard *cbd); |
| 65 | int jump_to_mouse(int flags, int *inclusive, int which_button); |
| 66 | int mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump); |
| 67 | win_T *mouse_find_win(int *rowp, int *colp); |
| 68 | int get_fpos_of_mouse(pos_T *mpos); |
| 69 | int vcol2col(win_T *wp, linenr_T lnum, int vcol); |
| 70 | void ui_focus_change(int in_focus); |
| 71 | void im_save_status(long *psave); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 72 | /* vim: set ft=c : */ |