Mercurial > vim
annotate src/proto/gui_mac.pro @ 21483:de74d764d36c v8.2.1292
patch 8.2.1292: AIDL filetype not recognized
Commit: https://github.com/vim/vim/commit/2afc3b4f776a4fe2bb22d0a79e77012d79b4ec1e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 25 16:53:12 2020 +0200
patch 8.2.1292: AIDL filetype not recognized
Problem: AIDL filetype not recognized.
Solution: Add filetype detection. (Dominique Pell?, closes https://github.com/vim/vim/issues/6533)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 25 Jul 2020 17:00:04 +0200 |
parents | fcccc29bd386 |
children |
rev | line source |
---|---|
7 | 1 /* gui_mac.c */ |
2 | |
3 /* | |
4 * Mac specific prototypes | |
5 */ | |
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 | 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); |
21355
fcccc29bd386
patch 8.2.1228: scrollbars not flush against the window edges when maximised
Bram Moolenaar <Bram@vim.org>
parents:
17063
diff
changeset
|
39 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:
17063
diff
changeset
|
40 int gui_mch_get_scrollbar_ypadding(void); |
7813
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
41 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
|
42 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
|
43 int gui_mch_adjust_charheight(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
44 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
|
45 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
|
46 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
|
47 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
|
48 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
|
49 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
|
50 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
|
51 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
|
52 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
|
53 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
|
54 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
|
55 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
|
56 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
|
57 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
|
58 void gui_mch_beep(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
59 void gui_mch_flash(int msec); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
60 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
|
61 void gui_mch_iconify(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
62 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
|
63 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
|
64 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
|
65 void gui_mch_update(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
66 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
|
67 void gui_mch_flush(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
68 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
|
69 void gui_mch_clear_all(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
70 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
|
71 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
|
72 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
|
73 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
|
74 /*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
|
75 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
|
76 /*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
|
77 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
|
78 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
|
79 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
|
80 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
|
81 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
|
82 void gui_mch_draw_menubar(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
83 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
|
84 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
|
85 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
|
86 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
|
87 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
|
88 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
|
89 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
|
90 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
|
91 void gui_mch_set_foreground(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
92 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
|
93 int gui_mch_showing_tabline(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
94 void gui_mch_update_tabline(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
95 void gui_mch_set_curtab(int nr); |
7 | 96 |
7813
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
97 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
|
98 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
|
99 int_u EventModifiers2VimMouseModifiers(EventModifiers macModifiers); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
100 char_u **new_fnames_from_AEDesc(AEDesc *theList, long *numFiles, OSErr *error); |
7 | 101 |
102 | |
7813
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
103 void gui_request_selection(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
104 void gui_mch_lose_selection(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
105 int gui_mch_own_selection(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
106 void gui_mch_clear_selection(void); |
7 | 107 |
7813
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
108 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
|
109 void gui_win_comp_pos(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
110 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
|
111 void gui_win_alloc(win_T *wp); |
7 | 112 void mch_post_buffer_write (buf_T *buf); |
113 | |
7813
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
114 void mch_errmsg(char *str); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
115 void mch_display_error(void); |
17063
3147c7c2e86b
patch 8.1.1531: clipboard type name is inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
13152
diff
changeset
|
116 void clip_mch_lose_selection(Clipboard_T *cbd); |
3147c7c2e86b
patch 8.1.1531: clipboard type name is inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
13152
diff
changeset
|
117 void clip_mch_request_selection(Clipboard_T *cbd); |
3147c7c2e86b
patch 8.1.1531: clipboard type name is inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
13152
diff
changeset
|
118 void clip_mch_set_selection(Clipboard_T *cbd); |
3147c7c2e86b
patch 8.1.1531: clipboard type name is inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
13152
diff
changeset
|
119 int clip_mch_own_selection(Clipboard_T *cbd); |
7 | 120 |
121 pascal OSErr FindProcessBySignature( const OSType targetType, | |
122 const OSType targetCreator, ProcessSerialNumberPtr psnPtr ); | |
123 OSErr InstallAEHandlers (void); | |
124 pascal OSErr HandleODocAE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
125 pascal OSErr Handle_aevt_oapp_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
126 pascal OSErr Handle_aevt_quit_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
127 pascal OSErr Handle_aevt_pdoc_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
128 pascal OSErr Handle_unknown_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
129 /* Shoulde we return MenuItemIndex? IMO yes, I did that for 5.7 ak*/ | |
130 short gui_mac_get_menu_item_index (vimmenu_T *pMenu); | |
131 | |
132 pascal OSErr Handle_KAHL_SRCH_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
133 pascal OSErr Handle_KAHL_MOD_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
134 pascal OSErr Handle_KAHL_GTTX_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
135 void Send_KAHL_MOD_AE (buf_T *buf); | |
136 | |
7813
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
137 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
|
138 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
|
139 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
|
140 void gui_mac_doUpdateEvent(EventRecord *event); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
141 void gui_mac_doActivateEvent(EventRecord *event); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
142 void gui_mac_doSuspendEvent(EventRecord *event); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
143 void gui_mac_doKeyEvent(EventRecord *theEvent); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
144 void gui_mac_doMouseDownEvent(EventRecord *theEvent); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
145 void gui_mac_doMouseMovedEvent(EventRecord *event); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
146 void gui_mac_doMouseUpEvent(EventRecord *theEvent); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
147 void gui_mch_mousehide(int hide); |
7 | 148 |
149 int C2PascalString (char_u *CString, Str255 *PascalString); | |
150 int GetFSSpecFromPath ( char_u *file, FSSpec *fileFSSpec); | |
151 char_u *FullPathFromFSSpec_save (FSSpec file); | |
152 | |
153 /* vim: set ft=c : */ |