annotate src/proto/gui_haiku.pro @ 29597:f2d7f20d83c3 v9.0.0139

patch 9.0.0139: truncating virtual text after a line not implemented Commit: https://github.com/vim/vim/commit/398649ee44edeb309c77361de697320378104b70 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 4 15:03:48 2022 +0100 patch 9.0.0139: truncating virtual text after a line not implemented Problem: Truncating virtual text after a line not implemented. Cursor positioning wrong with Newline in the text. Solution: Implement truncating. Disallow control characters in the text. (closes #10842)
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Aug 2022 16:15:08 +0200
parents fcccc29bd386
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19526
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 /* gui_haiku.cc - hand crafted */
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 void gui_mch_prepare(int *argc, char **argv);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 int gui_mch_init(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 int gui_mch_open(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 void gui_mch_exit(int vim_exitcode);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 int gui_mch_init_check(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 void gui_mch_flush(void);
20134
352701a626ed patch 8.2.0622: Haiku: GUI does not compile
Bram Moolenaar <Bram@vim.org>
parents: 19526
diff changeset
9 int gui_mch_is_blink_off(void);
19526
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 void gui_mch_new_colors(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 void gui_mch_set_bg_color(guicolor_T color);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 void gui_mch_set_fg_color(guicolor_T color);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 void gui_mch_set_sp_color(guicolor_T color);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 guicolor_T gui_mch_get_rgb(guicolor_T pixel);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 guicolor_T gui_mch_get_rgb_color(int r, int g, int b);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 guicolor_T gui_mch_get_color(char_u *name);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 GuiFont gui_mch_get_font(char_u *name, int giveErrorIfMissing);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 void gui_mch_set_font(GuiFont font);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 int gui_mch_init_font(char_u *font_name, int fontset);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 void gui_mch_free_font(GuiFont font);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 char_u *gui_mch_get_fontname(GuiFont font, char_u *name);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 void gui_mch_set_winpos(int x, int y);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 int gui_mch_get_winpos(int *x, int *y);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 void gui_mch_set_shellsize(int w, int h, int m_w, int m_h, int b_w, int b_h, int d);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 void gui_mch_get_screen_dimensions(int* screen_w, int* screen_h);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 void gui_mch_set_text_area_pos(int x, int y, int w, int h);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30 void gui_mch_enable_scrollbar(scrollbar_T *sb, int flag);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 //void gui_mch_set_scrollbar_thumb __ARGS((scrollbar_T *sb,int val, int size, int max));
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33 void gui_mch_set_scrollbar_thumb(scrollbar_T *sb, int val, int size, int max);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35 void gui_mch_set_scrollbar_pos(scrollbar_T *sb, int x, int y, int w, int h);
21355
fcccc29bd386 patch 8.2.1228: scrollbars not flush against the window edges when maximised
Bram Moolenaar <Bram@vim.org>
parents: 20134
diff changeset
36 int gui_mch_get_scrollbar_xpadding(void);
fcccc29bd386 patch 8.2.1228: scrollbars not flush against the window edges when maximised
Bram Moolenaar <Bram@vim.org>
parents: 20134
diff changeset
37 int gui_mch_get_scrollbar_ypadding(void);
19526
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38 void gui_mch_create_scrollbar(scrollbar_T *sb, int orient);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39 void gui_mch_destroy_scrollbar(scrollbar_T *sb);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41 void gui_mch_set_blinking(long waittime, long on, long off);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 void gui_mch_stop_blink(int may_call_gui_update_cursor);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43 void gui_mch_start_blink(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
45 int gui_mch_adjust_charheight(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46 void gui_mch_draw_string(int row, int col, char_u *s, int len, int flags);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
47 int gui_mch_haskey(char_u *name);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
48 void gui_mch_beep(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
49 void gui_mch_flash(int msec);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
50 void gui_mch_invert_rectangle(int r, int c, int nr, int nc);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
51 void gui_mch_iconify(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
52 void gui_mch_set_foreground(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
53 void gui_mch_settitle(char_u *title, char_u *icon);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
54 void gui_mch_draw_hollow_cursor(guicolor_T color);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
55 void gui_mch_draw_part_cursor(int w, int h, guicolor_T color);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
56 void gui_mch_update(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
57 int gui_mch_wait_for_chars(int wtime);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
58 void gui_mch_clear_block(int row1, int col1, int row2, int col2);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
59 void gui_mch_clear_all(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
60 void gui_mch_delete_lines(int row, int num_lines);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
61 void gui_mch_insert_lines(int row, int num_lines);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
62
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
63 void gui_mch_getmouse(int *x, int *y);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
64 void gui_mch_setmouse(int x, int y);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
65 void gui_mch_mousehide(int hide);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
66
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
67 void gui_mch_enable_menu(int flag);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
68 void gui_mch_set_menu_pos(int x, int y, int w, int h);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
69 void gui_mch_add_menu(vimmenu_T *menu, int idx);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
70 void gui_mch_add_menu_item(vimmenu_T *menu, int idx);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
71 void gui_mch_destroy_menu(vimmenu_T *menu);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
72 void gui_mch_menu_grey(vimmenu_T *menu, int grey);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
73 void gui_mch_menu_hidden(vimmenu_T *menu, int hidden);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
74 void gui_mch_draw_menubar(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
75 void gui_mch_show_popupmenu(vimmenu_T *menu);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
76 void gui_mch_toggle_tearoffs(int enable);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
77
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
78 void clip_mch_request_selection(Clipboard_T *cbd);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
79 void clip_mch_set_selection(Clipboard_T *cbd);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
80 void clip_mch_lose_selection(Clipboard_T *cbd);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
81 int clip_mch_own_selection(Clipboard_T *cbd);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
82
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
83 char_u *gui_mch_browse(int saving, char_u *title, char_u *dflt, char_u *ext, char_u *initdir, char_u *filter);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
84 int gui_mch_dialog(int type, char_u *title, char_u *message, char_u *buttons, int dfltbutton, char_u *textfield, int ex_cmd);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
85
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
86 void im_set_position(int row, int col);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
87 void im_set_active(int activate);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
88 int im_get_status(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
89
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
90 void gui_mch_show_toolbar(int showit);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
91 void gui_mch_set_toolbar_pos(int x, int y, int w, int h);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
92
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
93 void gui_mch_show_tabline(int showit);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
94 void gui_mch_set_tabline_pos(int x, int y, int w, int h);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
95 int gui_mch_showing_tabline(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
96 void gui_mch_update_tabline(void);
22f0dda71638 patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
97 void gui_mch_set_curtab(int nr);