SelectEvent updates selection to include this node, using selectmode from mouse event (ExtendContinuous, ExtendOne), and root sends selection event. Returns true if event sent.
(mode events.SelectModes)
| 844 | // using selectmode from mouse event (ExtendContinuous, ExtendOne), |
| 845 | // and root sends selection event. Returns true if event sent. |
| 846 | func (tr *Tree) SelectEvent(mode events.SelectModes) bool { |
| 847 | sel := tr.selectUpdate(mode) |
| 848 | if sel { |
| 849 | tr.sendSelectEvent() |
| 850 | } |
| 851 | return sel |
| 852 | } |
| 853 | |
| 854 | // UnselectEvent unselects this node (if selected), |
| 855 | // and root sends a selection event. |
no test coverage detected