forked from tslocum/cview
Update mouse support docs
This commit is contained in:
parent
5bfb860744
commit
2ad097f1e7
|
@ -1,4 +1,4 @@
|
|||
v1.4.5 (WIP)
|
||||
v1.4.5 (2020-04-25)
|
||||
- Add multithreading support
|
||||
- Add ContextMenu (initially supported by List)
|
||||
- Add List.Transform and TreeView.Transform
|
||||
|
|
11
doc.go
11
doc.go
|
@ -57,17 +57,18 @@ Mouse support may be enabled by calling Application.EnableMouse before
|
|||
Application.Run. See the example application provided with the
|
||||
Application.EnableMouse documentation.
|
||||
|
||||
Double clicks are treated single clicks by default. Specify a maximum duration
|
||||
between clicks with Application.SetDoubleClickInterval to enable double clicks.
|
||||
A standard duration is provided as StandardDoubleClick.
|
||||
|
||||
Mouse events are passed to:
|
||||
|
||||
- The handler set with SetMouseCapture, which is reserved for use by application
|
||||
developers to permanently intercept mouse events.
|
||||
|
||||
- The ObserveMouseEvent method of every widget under the mouse, bottom to top.
|
||||
developers to permanently intercept mouse events. Return nil to stop
|
||||
propagation.
|
||||
|
||||
- The MouseHandler method of the topmost widget under the mouse.
|
||||
|
||||
Event handlers may return nil to stop propagation.
|
||||
|
||||
Colors
|
||||
|
||||
Throughout this package, colors are specified using the tcell.Color type.
|
||||
|
|
Loading…
Reference in New Issue