Mercurial > vim
comparison src/gui.h @ 19526:22f0dda71638 v8.2.0320
patch 8.2.0320: no Haiku support
Commit: https://github.com/vim/vim/commit/b3f740695a0199d22cd97aee314f06c7ae32d2ea
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 26 16:16:53 2020 +0100
patch 8.2.0320: no Haiku support
Problem: No Haiku support.
Solution: Add support for Haiku. (Emir Sari, closes https://github.com/vim/vim/issues/5605)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 26 Feb 2020 16:30:04 +0100 |
parents | 6e3dc2d630c2 |
children | 35921b7fc07a |
comparison
equal
deleted
inserted
replaced
19525:619eb9bc3249 | 19526:22f0dda71638 |
---|---|
25 # undef MIN | 25 # undef MIN |
26 # endif | 26 # endif |
27 # endif | 27 # endif |
28 # include <X11/Intrinsic.h> | 28 # include <X11/Intrinsic.h> |
29 # include <gtk/gtk.h> | 29 # include <gtk/gtk.h> |
30 #endif | |
31 | |
32 #ifdef FEAT_GUI_HAIKU | |
33 # include "gui_haiku.h" | |
30 #endif | 34 #endif |
31 | 35 |
32 // Needed when generating prototypes, since FEAT_GUI is always defined then. | 36 // Needed when generating prototypes, since FEAT_GUI is always defined then. |
33 #if defined(FEAT_XCLIPBOARD) && !defined(FEAT_GUI_MOTIF) \ | 37 #if defined(FEAT_XCLIPBOARD) && !defined(FEAT_GUI_MOTIF) \ |
34 && !defined(FEAT_GUI_ATHENA) && !defined(FEAT_GUI_GTK) | 38 && !defined(FEAT_GUI_ATHENA) && !defined(FEAT_GUI_GTK) |
71 /* | 75 /* |
72 * GUIs that support dropping files on a running Vim. | 76 * GUIs that support dropping files on a running Vim. |
73 */ | 77 */ |
74 #if (defined(FEAT_DND) && defined(FEAT_GUI_GTK)) \ | 78 #if (defined(FEAT_DND) && defined(FEAT_GUI_GTK)) \ |
75 || defined(FEAT_GUI_MSWIN) \ | 79 || defined(FEAT_GUI_MSWIN) \ |
76 || defined(FEAT_GUI_MAC) | 80 || defined(FEAT_GUI_MAC) \ |
81 || defined(FEAT_GUI_HAIKU) | |
77 # define HAVE_DROP_FILE | 82 # define HAVE_DROP_FILE |
78 #endif | 83 #endif |
79 | 84 |
80 /* | 85 /* |
81 * This define makes menus always use a fontset. | 86 * This define makes menus always use a fontset. |
197 HWND id; // Id of real scroll bar | 202 HWND id; // Id of real scroll bar |
198 int scroll_shift; // The scrollbar stuff can handle only up to | 203 int scroll_shift; // The scrollbar stuff can handle only up to |
199 // 32767 lines. When the file is longer, | 204 // 32767 lines. When the file is longer, |
200 // scroll_shift is set to the number of shifts | 205 // scroll_shift is set to the number of shifts |
201 // to reduce the count. | 206 // to reduce the count. |
207 #endif | |
208 | |
209 #if FEAT_GUI_HAIKU | |
210 VimScrollBar *id; // Pointer to real scroll bar | |
202 #endif | 211 #endif |
203 #ifdef FEAT_GUI_MAC | 212 #ifdef FEAT_GUI_MAC |
204 ControlHandle id; // A handle to the scrollbar | 213 ControlHandle id; // A handle to the scrollbar |
205 #endif | 214 #endif |
206 #ifdef FEAT_GUI_PHOTON | 215 #ifdef FEAT_GUI_PHOTON |
424 guint32 event_time; | 433 guint32 event_time; |
425 #endif // FEAT_GUI_GTK | 434 #endif // FEAT_GUI_GTK |
426 | 435 |
427 #if defined(FEAT_GUI_TABLINE) \ | 436 #if defined(FEAT_GUI_TABLINE) \ |
428 && (defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_MOTIF) \ | 437 && (defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_MOTIF) \ |
429 || defined(FEAT_GUI_MAC)) | 438 || defined(FEAT_GUI_MAC) || defined(FEAT_GUI_HAIKU)) |
430 int tabline_height; | 439 int tabline_height; |
431 #endif | 440 #endif |
432 | 441 |
433 #ifdef FEAT_FOOTER | 442 #ifdef FEAT_FOOTER |
434 int footer_height; // height of the message footer | 443 int footer_height; // height of the message footer |
435 #endif | 444 #endif |
436 | 445 |
437 #if defined(FEAT_TOOLBAR) \ | 446 #if defined(FEAT_TOOLBAR) \ |
438 && (defined(FEAT_GUI_ATHENA) || defined(FEAT_GUI_MOTIF)) | 447 && (defined(FEAT_GUI_ATHENA) || defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_HAIKU)) |
439 int toolbar_height; // height of the toolbar | 448 int toolbar_height; // height of the toolbar |
440 #endif | 449 #endif |
441 | 450 |
442 #ifdef FEAT_BEVAL_TIP | 451 #ifdef FEAT_BEVAL_TIP |
443 // Tooltip properties; also used for balloon evaluation | 452 // Tooltip properties; also used for balloon evaluation |
452 #ifdef FEAT_GUI_MSWIN | 461 #ifdef FEAT_GUI_MSWIN |
453 GuiFont currFont; // Current font | 462 GuiFont currFont; // Current font |
454 guicolor_T currFgColor; // Current foreground text color | 463 guicolor_T currFgColor; // Current foreground text color |
455 guicolor_T currBgColor; // Current background text color | 464 guicolor_T currBgColor; // Current background text color |
456 guicolor_T currSpColor; // Current special text color | 465 guicolor_T currSpColor; // Current special text color |
466 #endif | |
467 | |
468 #ifdef FEAT_GUI_HAIKU | |
469 VimApp *vimApp; | |
470 VimWindow *vimWindow; | |
471 VimFormView *vimForm; | |
472 VimTextAreaView *vimTextArea; | |
473 int vdcmp; // Vim Direct Communication Message Port | |
457 #endif | 474 #endif |
458 | 475 |
459 #ifdef FEAT_GUI_MAC | 476 #ifdef FEAT_GUI_MAC |
460 WindowPtr VimWindow; | 477 WindowPtr VimWindow; |
461 MenuHandle MacOSHelpMenu; // Help menu provided by the MacOS | 478 MenuHandle MacOSHelpMenu; // Help menu provided by the MacOS |