annotate src/proto/gui_mac.pro @ 16304:c83169bdb290 v8.1.1157

patch 8.1.1157: Unicode tables are out of date commit https://github.com/vim/vim/commit/f9b89b467965802b8d14251c0dd944343796edcd Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 12 20:08:55 2019 +0200 patch 8.1.1157: Unicode tables are out of date Problem: Unicode tables are out of date. Solution: Update to Unicode 12. (Christian Brabandt, closes https://github.com/vim/vim/issues/4240)
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Apr 2019 20:15:07 +0200
parents f4c3a7f410f4
children 3147c7c2e86b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 /* gui_mac.c */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 * Mac specific prototypes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
7813
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
7 pascal Boolean WaitNextEventWrp(EventMask eventMask, EventRecord *theEvent, UInt32 sleep, RgnHandle mouseRgn);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
8 pascal void gui_mac_scroll_action(ControlHandle theControl, short partCode);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 pascal void gui_mac_drag_thumb (ControlHandle theControl, short partCode);
7813
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
10 void gui_mac_handle_event(EventRecord *event);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
11 void gui_mac_doMouseDown(EventRecord *theEvent);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
12 void gui_mac_do_key(EventRecord *theEvent);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
13 void gui_mac_handle_menu(long menuChoice);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
14 void gui_mac_focus_change(EventRecord *event);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
15 void gui_mac_update(EventRecord *event);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
16 short gui_mch_get_mac_menu_item_index(vimmenu_T *menu, vimmenu_T *parent);
9213
bb86514cad15 commit https://github.com/vim/vim/commit/703a8044b5393d37d355b0b1054a9a5a13912a3f
Christian Brabandt <cb@256bit.org>
parents: 7813
diff changeset
17 int gui_mch_is_blinking(void);
9428
0c7f47088e55 commit https://github.com/vim/vim/commit/9d5d3c9c4468ad76f16b50eabd3d9e7eab2ed44d
Christian Brabandt <cb@256bit.org>
parents: 9213
diff changeset
18 int gui_mch_is_blink_off(void);
7813
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
19 void gui_mch_set_blinking(long wait, long on, long off);
13152
f4c3a7f410f4 patch 8.0.1450: GUI: endless loop when stopping cursor blinking
Christian Brabandt <cb@256bit.org>
parents: 11745
diff changeset
20 void gui_mch_stop_blink(int may_call_gui_update_cursor);
7813
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
21 void gui_mch_start_blink(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
22 void gui_mch_getmouse(int *x, int *y);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
23 void gui_mch_setmouse(int x, int y);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
24 void gui_mch_prepare(int *argc, char **argv);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
25 int gui_mch_init_check(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
26 int gui_mch_init(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
27 void gui_mch_new_colors(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
28 int gui_mch_open(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
29 void gui_mch_exit(int);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
30 void gui_mch_set_winsize(int width, int height, int min_width, int min_height, int base_width, int base_height);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
31 int gui_mch_get_winpos(int *x, int *y);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
32 void gui_mch_set_winpos(int x, int y);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
33 void gui_mch_set_shellsize(int width, int height, int min_width, int min_height, int base_width, int base_height, int direction);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
34 void gui_mch_get_screen_dimensions(int *screen_w, int *screen_h);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
35 void gui_mch_set_text_area_pos(int x, int y, int w, int h);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
36 void gui_mch_enable_scrollbar(scrollbar_T *sb, int flag);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
37 void gui_mch_set_scrollbar_thumb(scrollbar_T *sb, long val, long size, long max);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
38 void gui_mch_set_scrollbar_pos(scrollbar_T *sb, int x, int y, int w, int h);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
39 void gui_mch_create_scrollbar(scrollbar_T *sb, int orient);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
40 void gui_mch_destroy_scrollbar(scrollbar_T *sb);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
41 int gui_mch_adjust_charheight(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
42 int gui_mch_init_font(char_u *font_name, int fontset);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
43 GuiFont gui_mch_get_font(char_u *name, int giveErrorIfMissing);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
44 char_u *gui_mch_get_fontname(GuiFont font, char_u *name);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
45 GuiFont gui_mac_find_font(char_u *font_name);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
46 void gui_mch_set_font(GuiFont font);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
47 int gui_mch_same_font(GuiFont f1, GuiFont f2);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
48 void gui_mch_free_font(GuiFont font);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
49 guicolor_T gui_mch_get_color(char_u *name);
11745
5a5709918a98 patch 8.0.0755: terminal window does not have colors in the GUI
Christian Brabandt <cb@256bit.org>
parents: 9939
diff changeset
50 guicolor_T gui_mch_get_rgb_color(int r, int g, int b);
7813
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
51 void gui_mch_set_fg_color(guicolor_T color);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
52 void gui_mch_set_bg_color(guicolor_T color);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
53 void gui_mch_set_sp_color(guicolor_T color);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
54 void gui_mch_draw_string(int row, int col, char_u *s, int len, int flags);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
55 int gui_mch_haskey(char_u *name);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
56 void gui_mch_beep(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
57 void gui_mch_flash(int msec);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
58 void gui_mch_invert_rectangle(int r, int c, int nr, int nc);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
59 void gui_mch_iconify(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
60 void gui_mch_settitle(char_u *title, char_u *icon);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
61 void gui_mch_draw_hollow_cursor(guicolor_T color);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
62 void gui_mch_draw_part_cursor(int w, int h, guicolor_T color);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
63 void gui_mch_update(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
64 int gui_mch_wait_for_chars(int wtime);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
65 void gui_mch_flush(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
66 void gui_mch_clear_block(int row1, int col1, int row2, int col2);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
67 void gui_mch_clear_all(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
68 void gui_mch_delete_lines(int row, int num_lines);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
69 void gui_mch_insert_lines(int row, int num_lines);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
70 void gui_mch_enable_menu(int flag);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
71 void gui_mch_set_menu_pos(int x, int y, int w, int h);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
72 /*void gui_mch_add_menu(vimmenu_T *menu, vimmenu_T *parent, int idx);*/
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
73 void gui_mch_add_menu(vimmenu_T *menu, int pos);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
74 /*void gui_mch_add_menu_item(vimmenu_T *menu, vimmenu_T *parent, int idx);*/
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
75 void gui_mch_add_menu_item(vimmenu_T *menu, int idx);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
76 void gui_mch_show_popupmenu(vimmenu_T *menu);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
77 void gui_mch_destroy_menu(vimmenu_T *menu);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
78 void gui_mch_menu_grey(vimmenu_T *menu, int grey);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
79 void gui_mch_menu_hidden(vimmenu_T *menu, int hidden);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
80 void gui_mch_draw_menubar(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
81 int gui_mch_get_lightness(guicolor_T pixel);
9939
ccb6461b82df commit https://github.com/vim/vim/commit/1b58cdd160c2e0ada0f638679a2aa27e4665fc48
Christian Brabandt <cb@256bit.org>
parents: 9428
diff changeset
82 guicolor_T gui_mch_get_rgb(guicolor_T pixel);
7813
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
83 int gui_mch_get_mouse_x(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
84 int gui_mch_get_mouse_y(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
85 void gui_mch_setmouse(int x, int y);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
86 void gui_mch_show_popupmenu(vimmenu_T *menu);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
87 int gui_mch_dialog(int type, char_u *title, char_u *message, char_u *buttons, int dfltbutton, char_u *textfield, int ex_cmd);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
88 char_u *gui_mch_browse(int saving, char_u *title, char_u *dflt, char_u *ext, char_u *initdir, char_u *filter);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
89 void gui_mch_set_foreground(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
90 void gui_mch_show_tabline(int showit);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
91 int gui_mch_showing_tabline(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
92 void gui_mch_update_tabline(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
93 void gui_mch_set_curtab(int nr);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
7813
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
95 char_u *C2Pascal_save(char_u *Cstring);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
96 char_u *C2Pascal_save_and_remove_backslash(char_u *Cstring);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
97 int_u EventModifiers2VimMouseModifiers(EventModifiers macModifiers);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
98 char_u **new_fnames_from_AEDesc(AEDesc *theList, long *numFiles, OSErr *error);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
7813
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
101 void gui_request_selection(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
102 void gui_mch_lose_selection(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
103 int gui_mch_own_selection(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
104 void gui_mch_clear_selection(void);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
7813
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
106 void gui_win_new_height(win_T *wp);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
107 void gui_win_comp_pos(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
108 void gui_win_free(win_T *wp);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
109 void gui_win_alloc(win_T *wp);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 void mch_post_buffer_write (buf_T *buf);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
7813
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
112 void mch_errmsg(char *str);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
113 void mch_display_error(void);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
114 void clip_mch_lose_selection(VimClipboard *cbd);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
115 void clip_mch_request_selection(VimClipboard *cbd);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
116 void clip_mch_set_selection(VimClipboard *cbd);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
117 int clip_mch_own_selection(VimClipboard *cbd);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 pascal OSErr FindProcessBySignature( const OSType targetType,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 const OSType targetCreator, ProcessSerialNumberPtr psnPtr );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 OSErr InstallAEHandlers (void);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 pascal OSErr HandleODocAE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 pascal OSErr Handle_aevt_oapp_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 pascal OSErr Handle_aevt_quit_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 pascal OSErr Handle_aevt_pdoc_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 pascal OSErr Handle_unknown_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 /* Shoulde we return MenuItemIndex? IMO yes, I did that for 5.7 ak*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 short gui_mac_get_menu_item_index (vimmenu_T *pMenu);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 pascal OSErr Handle_KAHL_SRCH_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 pascal OSErr Handle_KAHL_MOD_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 pascal OSErr Handle_KAHL_GTTX_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 void Send_KAHL_MOD_AE (buf_T *buf);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134
7813
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
135 void gui_mac_doInContentClick(EventRecord *theEvent, WindowPtr whichWindow);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
136 void gui_mac_doInDragClick(Point where, WindowPtr whichWindow);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
137 void gui_mac_doInGrowClick(Point where, WindowPtr whichWindow);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
138 void gui_mac_doUpdateEvent(EventRecord *event);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
139 void gui_mac_doActivateEvent(EventRecord *event);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
140 void gui_mac_doSuspendEvent(EventRecord *event);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
141 void gui_mac_doKeyEvent(EventRecord *theEvent);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
142 void gui_mac_doMouseDownEvent(EventRecord *theEvent);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
143 void gui_mac_doMouseMovedEvent(EventRecord *event);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
144 void gui_mac_doMouseUpEvent(EventRecord *theEvent);
744c66477ba9 commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents: 2684
diff changeset
145 void gui_mch_mousehide(int hide);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 int C2PascalString (char_u *CString, Str255 *PascalString);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 int GetFSSpecFromPath ( char_u *file, FSSpec *fileFSSpec);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 char_u *FullPathFromFSSpec_save (FSSpec file);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 /* vim: set ft=c : */