Mercurial > vim
annotate src/proto/gui_mac.pro @ 8915:8cbf472483fa v7.4.1744
commit https://github.com/vim/vim/commit/66210042892389d36e3d37203ec77f61467bfb1c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 15 20:40:41 2016 +0200
patch 7.4.1744
Problem: Python: Converting a sequence may leak memory.
Solution: Decrement a reference. (Nikolay Pavlov)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 15 Apr 2016 20:45:04 +0200 |
parents | 744c66477ba9 |
children | bb86514cad15 |
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); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
17 void gui_mch_set_blinking(long wait, long on, long off); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
18 void gui_mch_stop_blink(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
19 void gui_mch_start_blink(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
20 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
|
21 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
|
22 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
|
23 int gui_mch_init_check(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
24 int gui_mch_init(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
25 void gui_mch_new_colors(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
26 int gui_mch_open(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
27 void gui_mch_exit(int); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
28 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
|
29 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
|
30 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
|
31 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
|
32 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
|
33 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
|
34 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
|
35 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
|
36 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
|
37 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
|
38 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
|
39 int gui_mch_adjust_charheight(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
40 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
|
41 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
|
42 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
|
43 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
|
44 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
|
45 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
|
46 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
|
47 guicolor_T gui_mch_get_color(char_u *name); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
48 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
|
49 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
|
50 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
|
51 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
|
52 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
|
53 void gui_mch_beep(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
54 void gui_mch_flash(int msec); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
55 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
|
56 void gui_mch_iconify(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
57 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
|
58 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
|
59 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
|
60 void gui_mch_update(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
61 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
|
62 void gui_mch_flush(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
63 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
|
64 void gui_mch_clear_all(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
65 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
|
66 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
|
67 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
|
68 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
|
69 /*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
|
70 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
|
71 /*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
|
72 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
|
73 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
|
74 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
|
75 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
|
76 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
|
77 void gui_mch_draw_menubar(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
78 int gui_mch_get_lightness(guicolor_T pixel); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
79 long_u gui_mch_get_rgb(guicolor_T pixel); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
80 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
|
81 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
|
82 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
|
83 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
|
84 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
|
85 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
|
86 void gui_mch_set_foreground(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
87 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
|
88 int gui_mch_showing_tabline(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
89 void gui_mch_update_tabline(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
90 void gui_mch_set_curtab(int nr); |
7 | 91 |
7813
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
92 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
|
93 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
|
94 int_u EventModifiers2VimMouseModifiers(EventModifiers macModifiers); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
95 char_u **new_fnames_from_AEDesc(AEDesc *theList, long *numFiles, OSErr *error); |
7 | 96 |
97 | |
7813
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
98 void gui_request_selection(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
99 void gui_mch_lose_selection(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
100 int gui_mch_own_selection(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
101 void gui_mch_clear_selection(void); |
7 | 102 |
7813
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
103 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
|
104 void gui_win_comp_pos(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
105 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
|
106 void gui_win_alloc(win_T *wp); |
7 | 107 void mch_post_buffer_write (buf_T *buf); |
108 | |
7813
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
109 void mch_errmsg(char *str); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
110 void mch_display_error(void); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
111 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
|
112 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
|
113 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
|
114 int clip_mch_own_selection(VimClipboard *cbd); |
7 | 115 |
116 pascal OSErr FindProcessBySignature( const OSType targetType, | |
117 const OSType targetCreator, ProcessSerialNumberPtr psnPtr ); | |
118 OSErr InstallAEHandlers (void); | |
119 pascal OSErr HandleODocAE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
120 pascal OSErr Handle_aevt_oapp_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
121 pascal OSErr Handle_aevt_quit_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
122 pascal OSErr Handle_aevt_pdoc_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
123 pascal OSErr Handle_unknown_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
124 /* Shoulde we return MenuItemIndex? IMO yes, I did that for 5.7 ak*/ | |
125 short gui_mac_get_menu_item_index (vimmenu_T *pMenu); | |
126 | |
127 pascal OSErr Handle_KAHL_SRCH_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
128 pascal OSErr Handle_KAHL_MOD_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
129 pascal OSErr Handle_KAHL_GTTX_AE (const AppleEvent *theAEvent, AppleEvent *theReply, long refCon); | |
130 void Send_KAHL_MOD_AE (buf_T *buf); | |
131 | |
7813
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
132 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
|
133 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
|
134 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
|
135 void gui_mac_doUpdateEvent(EventRecord *event); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
136 void gui_mac_doActivateEvent(EventRecord *event); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
137 void gui_mac_doSuspendEvent(EventRecord *event); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
138 void gui_mac_doKeyEvent(EventRecord *theEvent); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
139 void gui_mac_doMouseDownEvent(EventRecord *theEvent); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
140 void gui_mac_doMouseMovedEvent(EventRecord *event); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
141 void gui_mac_doMouseUpEvent(EventRecord *theEvent); |
744c66477ba9
commit https://github.com/vim/vim/commit/4349c57543a98dc417b74da5a08c326337aa0bd3
Christian Brabandt <cb@256bit.org>
parents:
2684
diff
changeset
|
142 void gui_mch_mousehide(int hide); |
7 | 143 |
144 int C2PascalString (char_u *CString, Str255 *PascalString); | |
145 int GetFSSpecFromPath ( char_u *file, FSSpec *fileFSSpec); | |
146 char_u *FullPathFromFSSpec_save (FSSpec file); | |
147 | |
148 /* vim: set ft=c : */ |