blob: f392233311c0e76e75811c442a3e84d547424ef0 [file] [log] [blame]
Bram Moolenaarb3f74062020-02-26 16:16:53 +01001/* gui_haiku.cc - hand crafted */
2
3void gui_mch_prepare(int *argc, char **argv);
4int gui_mch_init(void);
5int gui_mch_open(void);
6void gui_mch_exit(int vim_exitcode);
7int gui_mch_init_check(void);
8void gui_mch_flush(void);
Bram Moolenaarbeae4082020-04-23 15:41:49 +02009int gui_mch_is_blink_off(void);
Bram Moolenaarb3f74062020-02-26 16:16:53 +010010void gui_mch_new_colors(void);
11void gui_mch_set_bg_color(guicolor_T color);
12void gui_mch_set_fg_color(guicolor_T color);
13void gui_mch_set_sp_color(guicolor_T color);
14guicolor_T gui_mch_get_rgb(guicolor_T pixel);
15guicolor_T gui_mch_get_rgb_color(int r, int g, int b);
16guicolor_T gui_mch_get_color(char_u *name);
17
18GuiFont gui_mch_get_font(char_u *name, int giveErrorIfMissing);
19void gui_mch_set_font(GuiFont font);
20int gui_mch_init_font(char_u *font_name, int fontset);
21void gui_mch_free_font(GuiFont font);
22char_u *gui_mch_get_fontname(GuiFont font, char_u *name);
23
24void gui_mch_set_winpos(int x, int y);
25int gui_mch_get_winpos(int *x, int *y);
26void gui_mch_set_shellsize(int w, int h, int m_w, int m_h, int b_w, int b_h, int d);
27void gui_mch_get_screen_dimensions(int* screen_w, int* screen_h);
28void gui_mch_set_text_area_pos(int x, int y, int w, int h);
29
30void gui_mch_enable_scrollbar(scrollbar_T *sb, int flag);
31
32//void gui_mch_set_scrollbar_thumb __ARGS((scrollbar_T *sb,int val, int size, int max));
33void gui_mch_set_scrollbar_thumb(scrollbar_T *sb, int val, int size, int max);
34
35void gui_mch_set_scrollbar_pos(scrollbar_T *sb, int x, int y, int w, int h);
36void gui_mch_create_scrollbar(scrollbar_T *sb, int orient);
37void gui_mch_destroy_scrollbar(scrollbar_T *sb);
38
39void gui_mch_set_blinking(long waittime, long on, long off);
40void gui_mch_stop_blink(int may_call_gui_update_cursor);
41void gui_mch_start_blink(void);
42
43int gui_mch_adjust_charheight(void);
44void gui_mch_draw_string(int row, int col, char_u *s, int len, int flags);
45int gui_mch_haskey(char_u *name);
46void gui_mch_beep(void);
47void gui_mch_flash(int msec);
48void gui_mch_invert_rectangle(int r, int c, int nr, int nc);
49void gui_mch_iconify(void);
50void gui_mch_set_foreground(void);
51void gui_mch_settitle(char_u *title, char_u *icon);
52void gui_mch_draw_hollow_cursor(guicolor_T color);
53void gui_mch_draw_part_cursor(int w, int h, guicolor_T color);
54void gui_mch_update(void);
55int gui_mch_wait_for_chars(int wtime);
56void gui_mch_clear_block(int row1, int col1, int row2, int col2);
57void gui_mch_clear_all(void);
58void gui_mch_delete_lines(int row, int num_lines);
59void gui_mch_insert_lines(int row, int num_lines);
60
61void gui_mch_getmouse(int *x, int *y);
62void gui_mch_setmouse(int x, int y);
63void gui_mch_mousehide(int hide);
64
65void gui_mch_enable_menu(int flag);
66void gui_mch_set_menu_pos(int x, int y, int w, int h);
67void gui_mch_add_menu(vimmenu_T *menu, int idx);
68void gui_mch_add_menu_item(vimmenu_T *menu, int idx);
69void gui_mch_destroy_menu(vimmenu_T *menu);
70void gui_mch_menu_grey(vimmenu_T *menu, int grey);
71void gui_mch_menu_hidden(vimmenu_T *menu, int hidden);
72void gui_mch_draw_menubar(void);
73void gui_mch_show_popupmenu(vimmenu_T *menu);
74void gui_mch_toggle_tearoffs(int enable);
75
76void clip_mch_request_selection(Clipboard_T *cbd);
77void clip_mch_set_selection(Clipboard_T *cbd);
78void clip_mch_lose_selection(Clipboard_T *cbd);
79int clip_mch_own_selection(Clipboard_T *cbd);
80
81char_u *gui_mch_browse(int saving, char_u *title, char_u *dflt, char_u *ext, char_u *initdir, char_u *filter);
82int gui_mch_dialog(int type, char_u *title, char_u *message, char_u *buttons, int dfltbutton, char_u *textfield, int ex_cmd);
83
84void im_set_position(int row, int col);
85void im_set_active(int activate);
86int im_get_status(void);
87
88void gui_mch_show_toolbar(int showit);
89void gui_mch_set_toolbar_pos(int x, int y, int w, int h);
90
91void gui_mch_show_tabline(int showit);
92void gui_mch_set_tabline_pos(int x, int y, int w, int h);
93int gui_mch_showing_tabline(void);
94void gui_mch_update_tabline(void);
95void gui_mch_set_curtab(int nr);