diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2020-12-20 17:25:09 +0100 |
---|---|---|
committer | Hannes Domani <ssbssa@yahoo.de> | 2021-06-04 16:18:10 +0200 |
commit | a53755664f5f904aefd0d0b87e12f9adb6b69129 (patch) | |
tree | 70cc826ff5f858bade6c0dcd83cc23c12504ebf2 /gdb/doc/python.texi | |
parent | 1bace02a96a7124accf7910f271663b0b7e8754b (diff) | |
download | gdb-a53755664f5f904aefd0d0b87e12f9adb6b69129.zip gdb-a53755664f5f904aefd0d0b87e12f9adb6b69129.tar.gz gdb-a53755664f5f904aefd0d0b87e12f9adb6b69129.tar.bz2 |
Forward mouse click to python TUI window
If the TUI window object implements the click method, it is called for each
mouse click event in this window.
gdb/ChangeLog:
2021-06-04 Hannes Domani <ssbssa@yahoo.de>
* python/py-tui.c (class tui_py_window): Add click function.
(tui_py_window::click): Likewise.
gdb/doc/ChangeLog:
2021-06-04 Hannes Domani <ssbssa@yahoo.de>
* python.texi (TUI Windows In Python): Document Window.click.
Diffstat (limited to 'gdb/doc/python.texi')
-rw-r--r-- | gdb/doc/python.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index f05d39f..7b7f069 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -6016,6 +6016,13 @@ contents. A positive argument should cause the viewport to move down, and so the content should appear to move up. @end defun +@defun Window.click (@var{x}, @var{y}, @var{button}) +This is called on a mouse click in this window. @var{x} and @var{y} are +the mouse coordinates inside the window (0-based), and @var{button} +specifies which mouse button was used, whose values can be 1 (left), +2 (middle), or 3 (right). +@end defun + @node Python Auto-loading @subsection Python Auto-loading @cindex Python auto-loading |