Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* gui.c */ |
Bram Moolenaar | afde13b | 2019-04-28 19:46:49 +0200 | [diff] [blame] | 2 | void gui_start(char_u *arg); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 3 | void gui_prepare(int *argc, char **argv); |
| 4 | int gui_init_check(void); |
| 5 | void gui_init(void); |
| 6 | void gui_exit(int rc); |
| 7 | void gui_shell_closed(void); |
| 8 | int gui_init_font(char_u *font_list, int fontset); |
| 9 | int gui_get_wide_font(void); |
Dusan Popovic | 4eeedc0 | 2021-10-16 20:52:05 +0100 | [diff] [blame] | 10 | void gui_set_ligatures(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 11 | void gui_update_cursor(int force, int clear_selection); |
| 12 | void gui_position_menu(void); |
| 13 | int gui_get_base_width(void); |
| 14 | int gui_get_base_height(void); |
| 15 | void gui_resize_shell(int pixel_width, int pixel_height); |
| 16 | void gui_may_resize_shell(void); |
| 17 | int gui_get_shellsize(void); |
| 18 | void gui_set_shellsize(int mustset, int fit_to_display, int direction); |
| 19 | void gui_new_shellsize(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 20 | void gui_stop_highlight(int mask); |
| 21 | void gui_clear_block(int row1, int col1, int row2, int col2); |
| 22 | void gui_update_cursor_later(void); |
| 23 | void gui_write(char_u *s, int len); |
Bram Moolenaar | 107abd2 | 2016-08-12 14:08:25 +0200 | [diff] [blame] | 24 | void gui_dont_update_cursor(int undraw); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 25 | void gui_can_update_cursor(void); |
Bram Moolenaar | a338adc | 2018-01-31 20:51:47 +0100 | [diff] [blame] | 26 | void gui_disable_flush(void); |
| 27 | void gui_enable_flush(void); |
| 28 | void gui_may_flush(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 29 | void gui_undraw_cursor(void); |
| 30 | void gui_redraw(int x, int y, int w, int h); |
Bram Moolenaar | 7c003aa | 2020-03-28 20:44:41 +0100 | [diff] [blame] | 31 | void gui_redraw_block(int row1, int col1, int row2, int col2, int flags); |
Bram Moolenaar | c9e649a | 2017-12-18 18:14:47 +0100 | [diff] [blame] | 32 | int gui_wait_for_chars(long wtime, int tb_change_cnt); |
| 33 | int gui_inchar(char_u *buf, int maxlen, long wtime, int tb_change_cnt); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 34 | void gui_send_mouse_event(int button, int x, int y, int repeated_click, int_u modifiers); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 35 | void gui_menu_cb(vimmenu_T *menu); |
| 36 | void gui_init_which_components(char_u *oldval); |
| 37 | int gui_use_tabline(void); |
| 38 | void gui_update_tabline(void); |
| 39 | void get_tabline_label(tabpage_T *tp, int tooltip); |
| 40 | int send_tabline_event(int nr); |
| 41 | void send_tabline_menu_event(int tabidx, int event); |
| 42 | void gui_remove_scrollbars(void); |
| 43 | void gui_create_scrollbar(scrollbar_T *sb, int type, win_T *wp); |
| 44 | scrollbar_T *gui_find_scrollbar(long ident); |
| 45 | void gui_drag_scrollbar(scrollbar_T *sb, long value, int still_dragging); |
| 46 | void gui_may_update_scrollbars(void); |
| 47 | void gui_update_scrollbars(int force); |
| 48 | int gui_do_scroll(void); |
| 49 | int gui_do_horiz_scroll(long_u leftcol, int compute_longest_lnum); |
| 50 | void gui_check_colors(void); |
| 51 | guicolor_T gui_get_color(char_u *name); |
| 52 | int gui_get_lightness(guicolor_T pixel); |
Bram Moolenaar | 7bae0b1 | 2019-11-21 22:14:18 +0100 | [diff] [blame] | 53 | char_u *gui_bg_default(void); |
| 54 | void init_gui_options(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 55 | void gui_new_scrollbar_colors(void); |
| 56 | void gui_focus_change(int in_focus); |
| 57 | void gui_mouse_moved(int x, int y); |
Bram Moolenaar | 0630bb6 | 2019-11-04 22:52:12 +0100 | [diff] [blame] | 58 | win_T *gui_mouse_window(mouse_find_T popup); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 59 | void gui_mouse_correct(void); |
| 60 | void ex_gui(exarg_T *eap); |
| 61 | int gui_find_bitmap(char_u *name, char_u *buffer, char *ext); |
| 62 | void gui_find_iconfile(char_u *name, char_u *buffer, char *ext); |
| 63 | void display_errors(void); |
| 64 | int no_console_input(void); |
| 65 | void gui_update_screen(void); |
| 66 | char_u *get_find_dialog_text(char_u *arg, int *wwordp, int *mcasep); |
| 67 | int gui_do_findrepl(int flags, char_u *find_text, char_u *repl_text, int down); |
| 68 | void gui_handle_drop(int x, int y, int_u modifiers, char_u **fnames, int count); |
Bram Moolenaar | 4e1d8bd | 2020-08-01 13:10:14 +0200 | [diff] [blame] | 69 | int check_for_interrupt(int key, int modifiers_arg); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 70 | /* vim: set ft=c : */ |