summaryrefslogtreecommitdiff
path: root/redo/table.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-20 21:21:45 -0400
committerPietro Gagliardi <[email protected]>2014-08-20 21:21:45 -0400
commitb964c564e7a7d7a460dbcf922f4ceeb5368def50 (patch)
tree4573927e1f9b7e025cfe6fbffa65f45e309691d7 /redo/table.go
parentf60e888c38dc866b3110145dfdfeffff0c0e0f40 (diff)
Added Table.OnSelected() and implemented it on Windows.
Diffstat (limited to 'redo/table.go')
-rw-r--r--redo/table.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/redo/table.go b/redo/table.go
index 2b69d6a..83baadd 100644
--- a/redo/table.go
+++ b/redo/table.go
@@ -47,6 +47,9 @@ type Table interface {
// TODO bounds checking
Selected() int
Select(index int)
+
+ // OnSelected is an event that gets triggered after the selection in the Table changes in whatever way (item selected or item deselected).
+ OnSelected(func())
}
type tablebase struct {