Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* gui_gtk_x11.c */ |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 2 | void gui_mch_prepare(int *argc, char **argv); |
| 3 | void gui_mch_free_all(void); |
Bram Moolenaar | 703a804 | 2016-06-04 16:24:32 +0200 | [diff] [blame] | 4 | int gui_mch_is_blinking(void); |
Bram Moolenaar | 9d5d3c9 | 2016-07-07 16:43:02 +0200 | [diff] [blame] | 5 | int gui_mch_is_blink_off(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 6 | void gui_mch_set_blinking(long waittime, long on, long off); |
Bram Moolenaar | 1dd45fb | 2018-01-31 21:10:01 +0100 | [diff] [blame] | 7 | void gui_mch_stop_blink(int may_call_gui_update_cursor); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 8 | void gui_mch_start_blink(void); |
Bram Moolenaar | 717e196 | 2016-08-10 21:28:44 +0200 | [diff] [blame] | 9 | int gui_mch_early_init_check(int give_message); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 10 | int gui_mch_init_check(void); |
Bram Moolenaar | 50bf7ce | 2019-09-15 13:17:00 +0200 | [diff] [blame] | 11 | void gui_mch_set_dark_theme(int dark); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 12 | void gui_mch_show_tabline(int showit); |
| 13 | int gui_mch_showing_tabline(void); |
| 14 | void gui_mch_update_tabline(void); |
| 15 | void gui_mch_set_curtab(int nr); |
| 16 | void gui_gtk_set_selection_targets(void); |
| 17 | void gui_gtk_set_dnd_targets(void); |
| 18 | int gui_mch_init(void); |
| 19 | void gui_mch_forked(void); |
| 20 | void gui_mch_new_colors(void); |
Bram Moolenaar | a555e6f | 2021-03-18 22:28:57 +0100 | [diff] [blame] | 21 | void gui_gtk_get_screen_geom_of_win(GtkWidget *wid, int point_x, int point_y, int *screen_x, int *screen_y, int *width, int *height); |
| 22 | void gui_mch_get_screen_dimensions(int *screen_w, int *screen_h); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 23 | int gui_mch_open(void); |
| 24 | void gui_mch_exit(int rc); |
| 25 | int gui_mch_get_winpos(int *x, int *y); |
| 26 | void gui_mch_set_winpos(int x, int y); |
| 27 | int gui_mch_maximized(void); |
| 28 | void gui_mch_unmaximize(void); |
| 29 | void gui_mch_newfont(void); |
| 30 | void gui_mch_set_shellsize(int width, int height, int min_width, int min_height, int base_width, int base_height, int direction); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 31 | void gui_mch_settitle(char_u *title, char_u *icon); |
| 32 | void gui_mch_enable_menu(int showit); |
| 33 | void gui_mch_show_toolbar(int showit); |
| 34 | int gui_mch_adjust_charheight(void); |
| 35 | char_u *gui_mch_font_dialog(char_u *oldval); |
| 36 | int gui_mch_init_font(char_u *font_name, int fontset); |
| 37 | GuiFont gui_mch_get_font(char_u *name, int report_error); |
| 38 | char_u *gui_mch_get_fontname(GuiFont font, char_u *name); |
| 39 | void gui_mch_free_font(GuiFont font); |
| 40 | guicolor_T gui_mch_get_color(char_u *name); |
Bram Moolenaar | 26af85d | 2017-07-23 16:45:10 +0200 | [diff] [blame] | 41 | guicolor_T gui_mch_get_rgb_color(int r, int g, int b); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 42 | void gui_mch_set_fg_color(guicolor_T color); |
| 43 | void gui_mch_set_bg_color(guicolor_T color); |
| 44 | void gui_mch_set_sp_color(guicolor_T color); |
| 45 | int gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags); |
Dusan Popovic | 4eeedc0 | 2021-10-16 20:52:05 +0100 | [diff] [blame] | 46 | int gui_gtk2_draw_string_ext(int row, int col, char_u *s, int len, int flags, int force_pango); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 47 | int gui_mch_haskey(char_u *name); |
| 48 | int gui_get_x11_windis(Window *win, Display **dis); |
| 49 | Display *gui_mch_get_display(void); |
| 50 | void gui_mch_beep(void); |
| 51 | void gui_mch_flash(int msec); |
| 52 | void gui_mch_invert_rectangle(int r, int c, int nr, int nc); |
| 53 | void gui_mch_iconify(void); |
| 54 | void gui_mch_set_foreground(void); |
| 55 | void gui_mch_draw_hollow_cursor(guicolor_T color); |
| 56 | void gui_mch_draw_part_cursor(int w, int h, guicolor_T color); |
| 57 | void gui_mch_update(void); |
| 58 | int gui_mch_wait_for_chars(long wtime); |
| 59 | void gui_mch_flush(void); |
Bram Moolenaar | 26af85d | 2017-07-23 16:45:10 +0200 | [diff] [blame] | 60 | void gui_mch_clear_block(int row1arg, int col1arg, int row2arg, int col2arg); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 61 | void gui_mch_clear_all(void); |
| 62 | void gui_mch_delete_lines(int row, int num_lines); |
| 63 | void gui_mch_insert_lines(int row, int num_lines); |
Bram Moolenaar | 0554fa4 | 2019-06-14 21:36:54 +0200 | [diff] [blame] | 64 | void clip_mch_request_selection(Clipboard_T *cbd); |
| 65 | void clip_mch_lose_selection(Clipboard_T *cbd); |
| 66 | int clip_mch_own_selection(Clipboard_T *cbd); |
| 67 | void clip_mch_set_selection(Clipboard_T *cbd); |
| 68 | int clip_gtk_owner_exists(Clipboard_T *cbd); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 69 | void gui_mch_menu_grey(vimmenu_T *menu, int grey); |
| 70 | void gui_mch_menu_hidden(vimmenu_T *menu, int hidden); |
| 71 | void gui_mch_draw_menubar(void); |
| 72 | void gui_mch_enable_scrollbar(scrollbar_T *sb, int flag); |
Bram Moolenaar | 1b58cdd | 2016-08-22 23:04:33 +0200 | [diff] [blame] | 73 | guicolor_T gui_mch_get_rgb(guicolor_T pixel); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 74 | void gui_mch_getmouse(int *x, int *y); |
| 75 | void gui_mch_setmouse(int x, int y); |
| 76 | void gui_mch_mousehide(int hide); |
| 77 | void mch_set_mouse_shape(int shape); |
| 78 | void gui_mch_drawsign(int row, int col, int typenr); |
| 79 | void *gui_mch_register_sign(char_u *signfile); |
| 80 | void gui_mch_destroy_sign(void *sign); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 81 | /* vim: set ft=c : */ |