comparison runtime/doc/popup.txt @ 17348:d82b0cfb1e82 v8.1.1673

patch 8.1.1673: cannot easily find the popup window at a certain position commit https://github.com/vim/vim/commit/b4f0628fc5892e1bb9f0f780af782ff47ef277ed Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 12 21:07:54 2019 +0200 patch 8.1.1673: cannot easily find the popup window at a certain position Problem: Cannot easily find the popup window at a certain position. Solution: Add popup_locate().
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Jul 2019 21:15:04 +0200
parents 33dccaafb214
children b9bc47742df6
comparison
equal deleted inserted replaced
17347:21b9633e27d1 17348:d82b0cfb1e82
168 |popup_filter_yesno()| blocks until 'y' or 'n' is pressed 168 |popup_filter_yesno()| blocks until 'y' or 'n' is pressed
169 169
170 Other: 170 Other:
171 |popup_getoptions()| get current options for a popup 171 |popup_getoptions()| get current options for a popup
172 |popup_getpos()| get actual position and size of a popup 172 |popup_getpos()| get actual position and size of a popup
173 |popup_locate()| find popup window at a screen position
173 174
174 175
175 DETAILS *popup-function-details* 176 DETAILS *popup-function-details*
176 177
177 popup_atcursor({what}, {options}) *popup_atcursor()* 178 popup_atcursor({what}, {options}) *popup_atcursor()*
339 If {id} is a displayed popup, hide it now. If the popup has a 340 If {id} is a displayed popup, hide it now. If the popup has a
340 filter it will not be invoked for so long as the popup is 341 filter it will not be invoked for so long as the popup is
341 hidden. 342 hidden.
342 If window {id} does not exist nothing happens. If window {id} 343 If window {id} does not exist nothing happens. If window {id}
343 exists but is not a popup window an error is given. *E993* 344 exists but is not a popup window an error is given. *E993*
345
346
347 popup_locate({row}, {col}) *popup_locate()*
348 Return the |window-ID| of the popup at screen positoin {row}
349 and {col}. If there are multiple popups the one with the
350 highest zindex is returned. If there are no popups at this
351 position then zero is returned.
344 352
345 353
346 popup_menu({what}, {options}) *popup_menu()* 354 popup_menu({what}, {options}) *popup_menu()*
347 Show the {what} near the cursor, handle selecting one of the 355 Show the {what} near the cursor, handle selecting one of the
348 items with cursorkeys, and close it an item is selected with 356 items with cursorkeys, and close it an item is selected with