Mercurial > vim
comparison src/structs.h @ 17219:5169811b3044 v8.1.1609
patch 8.1.1609: the user cannot easily close a popup window
commit https://github.com/vim/vim/commit/2e62b568e91c36adb16dbcc609665170f09f3845
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 30 18:07:00 2019 +0200
patch 8.1.1609: the user cannot easily close a popup window
Problem: The user cannot easily close a popup window.
Solution: Add the "close" property. (mostly by Masato Nishihata,
closes #4601)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 30 Jun 2019 18:15:04 +0200 |
parents | 11f3cf51d43b |
children | 2a97167854fc |
comparison
equal
deleted
inserted
replaced
17218:210c4c5f783d | 17219:5169811b3044 |
---|---|
1993 POPPOS_TOPLEFT, | 1993 POPPOS_TOPLEFT, |
1994 POPPOS_BOTRIGHT, | 1994 POPPOS_BOTRIGHT, |
1995 POPPOS_TOPRIGHT, | 1995 POPPOS_TOPRIGHT, |
1996 POPPOS_CENTER | 1996 POPPOS_CENTER |
1997 } poppos_T; | 1997 } poppos_T; |
1998 | |
1999 typedef enum { | |
2000 POPCLOSE_NONE, | |
2001 POPCLOSE_BUTTON, | |
2002 POPCLOSE_CLICK | |
2003 } popclose_T; | |
1998 | 2004 |
1999 # define POPUPWIN_DEFAULT_ZINDEX 50 | 2005 # define POPUPWIN_DEFAULT_ZINDEX 50 |
2000 # define POPUPMENU_ZINDEX 100 | 2006 # define POPUPMENU_ZINDEX 100 |
2001 # define POPUPWIN_DIALOG_ZINDEX 200 | 2007 # define POPUPWIN_DIALOG_ZINDEX 200 |
2002 # define POPUPWIN_NOTIFICATION_ZINDEX 300 | 2008 # define POPUPWIN_NOTIFICATION_ZINDEX 300 |
2918 win_T *w_popup_curwin; // close popup if curwin differs | 2924 win_T *w_popup_curwin; // close popup if curwin differs |
2919 linenr_T w_popup_lnum; // close popup if cursor not on this line | 2925 linenr_T w_popup_lnum; // close popup if cursor not on this line |
2920 colnr_T w_popup_mincol; // close popup if cursor before this col | 2926 colnr_T w_popup_mincol; // close popup if cursor before this col |
2921 colnr_T w_popup_maxcol; // close popup if cursor after this col | 2927 colnr_T w_popup_maxcol; // close popup if cursor after this col |
2922 int w_popup_drag; // allow moving the popup with the mouse | 2928 int w_popup_drag; // allow moving the popup with the mouse |
2929 popclose_T w_popup_close; // allow closing the popup with the mouse | |
2923 list_T *w_popup_mask; // list of lists for "mask" | 2930 list_T *w_popup_mask; // list of lists for "mask" |
2924 | 2931 |
2925 # if defined(FEAT_TIMERS) | 2932 # if defined(FEAT_TIMERS) |
2926 timer_T *w_popup_timer; // timer for closing popup window | 2933 timer_T *w_popup_timer; // timer for closing popup window |
2927 # endif | 2934 # endif |